You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importjava.nio.ByteBuffer;
interfaceBufferAllocator {
/// Returns a lease for a [ByteBuffer] with at least the specified [capacity][ByteBuffer#capacity].LeasedByteBuffergetByteBuffer(longminCapacity);
}
Formatting the above code causes the following issues:
The doc comment is split into two lines, but the second line starts with // instead of ///.
The import statement is removed, breaking the links.
Disabling Javadoc formatting doesn't prevent either issue.
The only workaround I could find was to disable google-java-format.
Tested with JDK 23 and google-java-format 1.24.0.
The text was updated successfully, but these errors were encountered:
Consider the following code:
Formatting the above code causes the following issues:
//
instead of///
.Disabling Javadoc formatting doesn't prevent either issue.
The only workaround I could find was to disable google-java-format.
Tested with JDK 23 and google-java-format 1.24.0.
The text was updated successfully, but these errors were encountered: