diff options
Diffstat (limited to 'src/main/javassist/compiler/ast/FieldDecl.java')
-rw-r--r-- | src/main/javassist/compiler/ast/FieldDecl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/javassist/compiler/ast/FieldDecl.java b/src/main/javassist/compiler/ast/FieldDecl.java index 82d4856c..e2a066e9 100644 --- a/src/main/javassist/compiler/ast/FieldDecl.java +++ b/src/main/javassist/compiler/ast/FieldDecl.java @@ -19,6 +19,9 @@ package javassist.compiler.ast; import javassist.compiler.CompileError; public class FieldDecl extends ASTList { + /** default serialVersionUID */ + private static final long serialVersionUID = 1L; + public FieldDecl(ASTree _head, ASTList _tail) { super(_head, _tail); } @@ -27,8 +30,9 @@ public class FieldDecl extends ASTList { public Declarator getDeclarator() { return (Declarator)tail().head(); } - public ASTree getInit() { return (ASTree)sublist(2).head(); } + public ASTree getInit() { return sublist(2).head(); } + @Override public void accept(Visitor v) throws CompileError { v.atFieldDecl(this); } |