modified to use AccessNode
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@123 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -66,7 +66,7 @@ public class UnusedPrivateInstanceVariableRule extends AbstractRule implements R
|
||||
return super.visit(node, data);
|
||||
}
|
||||
AccessNode grandparentAccessNode = (AccessNode)grandparent;
|
||||
if (grandparentAccessNode.isPublic() || grandparentAccessNode.isStatic()) {
|
||||
if (!grandparentAccessNode.isPrivate() || grandparentAccessNode.isStatic()) {
|
||||
return super.visit(node, data);
|
||||
}
|
||||
Namespace group = (Namespace)nameSpaces.peek();
|
||||
|
Reference in New Issue
Block a user