Changeset 12586 in josm for trunk/tools/checkstyle/src


Ignore:
Timestamp:
2017-08-09T21:54:38+02:00 (4 years ago)
Author:
Don-vip
Message:

see #14794 - update to checkstyle 8.0 (to match the version used by Eclipse CS) + add new project to build custom Eclipse plugin (now required)

Location:
trunk/tools/checkstyle
Files:
4 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tools/checkstyle

    • Property svn:ignore set to
      target
  • trunk/tools/checkstyle/src/org/openstreetmap/josm/TopLevelJavadocCheck.java

    r12582 r12586  
    1313 * Checks that there is Javadoc for every top level class, interface or enum.
    1414 */
    15 public class TopLevelJavadocCheck extends AbstractCheck
    16 {
     15public class TopLevelJavadocCheck extends AbstractCheck {
     16
    1717    private boolean foundTopLevelClass;
    1818
    1919    @Override
    20     public int[] getDefaultTokens()
    21     {
     20    public int[] getAcceptableTokens() {
     21        return getDefaultTokens();
     22    }
     23
     24    @Override
     25    public int[] getDefaultTokens() {
    2226        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];
    2332    }
    2433
     
    7584
    7685    @Override
    77     public void visitToken(DetailAST ast)
    78     {
     86    public void visitToken(DetailAST ast) {
    7987        DetailAST parent = ast.getParent();
    8088        if (parent == null || parent.getType() == TokenTypes.EOF) {
Note: See TracChangeset for help on using the changeset viewer.