added UnusedPrivateMethodRule

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@453 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-07-19 21:04:11 +00:00
parent fb970c12ee
commit 3010dc3022

View File

@ -79,7 +79,7 @@ public class UnusedPrivateMethodRule extends AbstractRule {
return super.visit(node, data);
}
// exclude these serializable things
if (node.getImage().equals("readObject") || node.getImage().equals("writeObject")|| node.getImage().equals("readResolve") || node.getImage().equals("writeResolve")) {
if (node.getImage().equals("readObject") || node.getImage().equals("writeObject")|| node.getImage().equals("readResolve")) {
return super.visit(node, data);
}
privateMethodNodes.add(node);