- Notifications
You must be signed in to change notification settings - Fork 899
Open
Description
Consider the following code:
import java.nio.ByteBuffer; interface BufferAllocator { /// Returns a lease for a [ByteBuffer] with at least the specified [capacity][ByteBuffer#capacity]. LeasedByteBuffer getByteBuffer(long minCapacity); }
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.
cushon, mizdebsk, vorburger, intgr, safeuq-xflowpay and 7 more
Metadata
Metadata
Assignees
Labels
No labels