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:
Tom Copeland
2002-06-28 17:24:17 +00:00
parent 38b8a57e62
commit 8598e166b2

View File

@ -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();