aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/ast/Declarator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/compiler/ast/Declarator.java')
-rw-r--r--src/main/javassist/compiler/ast/Declarator.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/javassist/compiler/ast/Declarator.java b/src/main/javassist/compiler/ast/Declarator.java
index 5f14ac57..24170db0 100644
--- a/src/main/javassist/compiler/ast/Declarator.java
+++ b/src/main/javassist/compiler/ast/Declarator.java
@@ -16,13 +16,15 @@
package javassist.compiler.ast;
-import javassist.compiler.TokenId;
import javassist.compiler.CompileError;
+import javassist.compiler.TokenId;
/**
* Variable declarator.
*/
public class Declarator extends ASTList implements TokenId {
+ /** default serialVersionUID */
+ private static final long serialVersionUID = 1L;
protected int varType;
protected int arrayDim;
protected int localVar;
@@ -86,16 +88,17 @@ public class Declarator extends ASTList implements TokenId {
ASTList t = tail();
if (t != null)
return t.head();
- else
- return null;
+ return null;
}
public void setLocalVar(int n) { localVar = n; }
public int getLocalVar() { return localVar; }
+ @Override
public String getTag() { return "decl"; }
+ @Override
public void accept(Visitor v) throws CompileError {
v.atDeclarator(this);
}