Refactoring per Carl's suggestions

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1414 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-02-10 22:17:29 +00:00
parent 8268453ea5
commit d76349f0b7

View File

@ -21,22 +21,21 @@ public class ASTExplicitConstructorInvocation extends SimpleNode {
return ((ASTArguments)this.jjtGetChild(0)).getArgumentCount();
}
private boolean isThis;
private boolean isSuper;
private String thisOrSuper;
public void setIsThis() {
this.isThis = true;
this.thisOrSuper = "this";
}
public void setIsSuper() {
this.isSuper = true;
this.thisOrSuper = "super";
}
public boolean isThis() {
return this.isThis;
return thisOrSuper.equals("this");
}
public boolean isSuper() {
return this.isSuper;
return thisOrSuper.equals("super");
}
}