Skip to content

Commit

Permalink
Issue checkstyle#6123: ignore parameters of methods with modifiers no…
Browse files Browse the repository at this point in the history
…t in 'memberModifiers'
  • Loading branch information
ebruneton authored and tsunghanjacktsai committed Dec 3, 2018
1 parent e91a353 commit 20dd9a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -297,7 +297,8 @@ private void visitParameterDef(DetailAST parameterDef) {
final DetailAST grandParentAST = parameterDef.getParent().getParent();

if (grandParentAST.getType() == TokenTypes.METHOD_DEF
&& isCheckedMethod(grandParentAST)) {
&& isCheckedMethod(grandParentAST)
&& isVerifiable(grandParentAST)) {
checkClassName(parameterDef);
}
}
Expand Down
Expand Up @@ -32,4 +32,7 @@ private class Some {
//WARNING if memberModifiers is set and contains TokenTypes.LITERAL_PROTECTED
protected AbstractClass a1 = null;
public AbstractClass a2 = null;

//NO WARNING if memberModifiers is set and does not contain TokenTypes.LITERAL_PUBLIC
public void table5(java.util.TreeSet<Object> arg) { }
}

0 comments on commit 20dd9a9

Please sign in to comment.