Skip to content

Commit b53d245

Browse files
ivamlyromani
authored andcommitted
Issue #17882: Update AUTHOR_BLOCK_TAG of JavadocCommentsTokenTypes to new AST format
1 parent c345c1e commit b53d245

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

src/main/java/com/puppycrawl/tools/checkstyle/api/JavadocCommentsTokenTypes.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,26 @@ public final class JavadocCommentsTokenTypes {
7474
public static final int AT_SIGN = JavadocCommentsLexer.AT_SIGN;
7575

7676
/**
77-
* {@code @author} block tag.
77+
* {@code @author} Javadoc block tag.
78+
*
79+
* <p>Such Javadoc tag can have one child:</p>
80+
* <ol>
81+
* <li>{@link #DESCRIPTION}</li>
82+
* </ol>
83+
*
84+
* <p><b>Example:</b></p>
85+
* <pre>{@code * @author name.}</pre>
86+
* <b>Tree:</b>
87+
* <pre>{@code
88+
* JAVADOC_BLOCK_TAG -> JAVADOC_BLOCK_TAG
89+
* `--AUTHOR_BLOCK_TAG -> AUTHOR_BLOCK_TAG
90+
* |--AT_SIGN -> @
91+
* |--TAG_NAME -> author
92+
* `--DESCRIPTION -> DESCRIPTION
93+
* `--TEXT -> name.
94+
* }</pre>
95+
*
96+
* @see #JAVADOC_BLOCK_TAG
7897
*/
7998
public static final int AUTHOR_BLOCK_TAG = JavadocCommentsLexer.AUTHOR_BLOCK_TAG;
8099

0 commit comments

Comments
 (0)