From d76349f0b7e02c6e0ef772cc357ae189209ac729 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Mon, 10 Feb 2003 22:17:29 +0000 Subject: [PATCH] Refactoring per Carl's suggestions git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1414 51baf565-9d33-0410-a72c-fc3788e3496d --- .../pmd/ast/ASTExplicitConstructorInvocation.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pmd/src/net/sourceforge/pmd/ast/ASTExplicitConstructorInvocation.java b/pmd/src/net/sourceforge/pmd/ast/ASTExplicitConstructorInvocation.java index 1c6fe043b6..4ef93608ab 100644 --- a/pmd/src/net/sourceforge/pmd/ast/ASTExplicitConstructorInvocation.java +++ b/pmd/src/net/sourceforge/pmd/ast/ASTExplicitConstructorInvocation.java @@ -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"); } }