Skip to content

Commit

Permalink
HSEARCH-2145 Fix NPE when running checkstyle:check
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Mar 2, 2016
1 parent 4bfc501 commit 374a428
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -42,7 +42,17 @@ public void setMessage(String message) {

@Override
public int[] getDefaultTokens() {
return new int[] { TokenTypes.IMPORT, TokenTypes.STATIC_IMPORT };
return getAcceptableTokens();
}

@Override
public int[] getAcceptableTokens() {
return new int[]{ TokenTypes.IMPORT, TokenTypes.STATIC_IMPORT };
}

@Override
public int[] getRequiredTokens() {
return getAcceptableTokens();
}

@Override
Expand Down

0 comments on commit 374a428

Please sign in to comment.