Changeset 12586 in josm for trunk/tools/checkstyle/src/org
- Timestamp:
- 2017-08-09T21:54:38+02:00 (7 years ago)
- Location:
- trunk/tools/checkstyle
- Files:
-
- 3 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/checkstyle
-
Property svn:ignore
set to
target
-
Property svn:ignore
set to
-
trunk/tools/checkstyle/src/org/openstreetmap/josm/TopLevelJavadocCheck.java
r12582 r12586 13 13 * Checks that there is Javadoc for every top level class, interface or enum. 14 14 */ 15 public class TopLevelJavadocCheck extends AbstractCheck 16 { 15 public class TopLevelJavadocCheck extends AbstractCheck { 16 17 17 private boolean foundTopLevelClass; 18 18 19 19 @Override 20 public int[] getDefaultTokens() 21 { 20 public int[] getAcceptableTokens() { 21 return getDefaultTokens(); 22 } 23 24 @Override 25 public int[] getDefaultTokens() { 22 26 return new int[]{TokenTypes.CLASS_DEF, TokenTypes.INTERFACE_DEF, TokenTypes.ENUM_DEF}; 27 } 28 29 @Override 30 public int[] getRequiredTokens() { 31 return new int[0]; 23 32 } 24 33 … … 75 84 76 85 @Override 77 public void visitToken(DetailAST ast) 78 { 86 public void visitToken(DetailAST ast) { 79 87 DetailAST parent = ast.getParent(); 80 88 if (parent == null || parent.getType() == TokenTypes.EOF) {
Note:
See TracChangeset
for help on using the changeset viewer.