Skip to content

Commit

Permalink
#623 Fix CheckStyle static access error
Browse files Browse the repository at this point in the history
  • Loading branch information
gumbelmj committed Feb 5, 2016
1 parent 8db94aa commit 95e7db4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ private void checkClassMethod(final DetailAST method) {
if (modifiers.findFirstToken(TokenTypes.LITERAL_STATIC) != null) {
return;
}
final int maxlen = NonStaticMethodCheck.ONLY_THROW_LEN;
final boolean onlythrow =
method.branchContains(TokenTypes.LITERAL_THROW)
&& this.getMethodLength(method) == ONLY_THROW_LEN;
&& this.getMethodLength(method) == maxlen;
if (!AnnotationUtility.containsAnnotation(method, "Override")
&& !isInAbstractOrNativeMethod(method)
&& !method.branchContains(TokenTypes.LITERAL_THIS)
Expand Down

0 comments on commit 95e7db4

Please sign in to comment.