minor tweak

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4746 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Brian Remedios
2006-10-26 05:38:35 +00:00
parent babfc20c39
commit ffc5bcb052

View File

@ -24,7 +24,7 @@ public class ASTAnnotation extends SimpleJavaNode {
*/
if (jjtGetChild(0) instanceof ASTSingleMemberAnnotation) {
ASTSingleMemberAnnotation n = (ASTSingleMemberAnnotation) jjtGetChild(0);
if (n.jjtGetChild(0) instanceof ASTName && ((ASTName) n.jjtGetChild(0)).getImage().equals("SuppressWarnings")) {
if (n.jjtGetChild(0) instanceof ASTName && ((ASTName) n.jjtGetChild(0)).hasImageEqualTo("SuppressWarnings")) {
return true;
}
return false;
@ -53,7 +53,7 @@ public class ASTAnnotation extends SimpleJavaNode {
return false;
}
ASTName n = (ASTName)jjtGetChild(0);
if (n.getImage() == null || n.getImage().equals("SuppressWarnings")) {
if (n.getImage() == null || n.hasImageEqualTo("SuppressWarnings")) {
return false;
}