Complete list of special Java comment tags

I just found out that I can write "{@value}" in a comment of an open static final field to insert the actual value of the field in the comment. Example:

/** The value of this field is {@value}. */ public static final int someField = 3 

In Eclipse, this comment appears as "The value of this field is 3". Another trick is to write "{@code some-code}" to insert the code into the comment.

Is there any complete list of these special comment tags? I could not find him ...

+6
java comments
source share
1 answer

This should help you:

Note the -tag . Tags are extensible, so there is no such thing as a complete list.

+7
source share

All Articles