Inline (One-line) JavaDoc comments not rendering at all.

Answered

One line JavaDoc comments placed before Enum element (like in `javax.lang.model.element.Modifier` below) do not get the option to render them. CTRL + ALT + Q on these elements toggles rendering for JavaDoc of the class itself (nor does a javadoc render gutter icon show at the line).

This is a pretty interesting bug, considering IDEA allowing for these types of comments to not be automatically formatted. 

Editor → Code Style → Java → JavaDoc → Other → option “Do not wrap one line comments”.

 

IntelliJ IDEA 2025.1 (Ultimate Edition), Build #IU-251.23774.435

Runtime version: 21.0.6+9-b895.109 amd64 (JCEF 122.1.9)

 

3
1 comment

Thanks for sharing your observation. While this may possibly be intentional I have created IDEA-372765 (https://youtrack.jetbrains.com/issue/IDEA-372765) to be checked and answered by the team. Feel free to subscribe to it for the updates.

0

Please sign in to leave a comment.