diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-18 16:42:33 +0200 |
commit | bd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (patch) | |
tree | aef91399af0bef930dd18acb8bf0bb0f4817557e /src/lombok/javac/JavacNode.java | |
parent | 56616f3bec6d8eda8c2bcf0550490f0098fb7fed (diff) | |
parent | 1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (diff) | |
download | lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.gz lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.tar.bz2 lombok-bd3966af0e5d2ce948bf22dcb99227e0df5c6f13.zip |
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'src/lombok/javac/JavacNode.java')
-rw-r--r-- | src/lombok/javac/JavacNode.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lombok/javac/JavacNode.java b/src/lombok/javac/JavacNode.java index 004aff19..46e06579 100644 --- a/src/lombok/javac/JavacNode.java +++ b/src/lombok/javac/JavacNode.java @@ -81,10 +81,10 @@ public class JavacNode extends lombok.core.LombokNode<JavacAST, JavacNode, JCTre visitor.endVisitInitializer(this, (JCBlock)get()); break; case ARGUMENT: - JCMethodDecl parent = (JCMethodDecl) up().get(); - visitor.visitMethodArgument(this, (JCVariableDecl)get(), parent); + JCMethodDecl parentMethod = (JCMethodDecl) up().get(); + visitor.visitMethodArgument(this, (JCVariableDecl)get(), parentMethod); ast.traverseChildren(visitor, this); - visitor.endVisitMethodArgument(this, (JCVariableDecl)get(), parent); + visitor.endVisitMethodArgument(this, (JCVariableDecl)get(), parentMethod); break; case LOCAL: visitor.visitLocal(this, (JCVariableDecl)get()); @@ -175,7 +175,7 @@ public class JavacNode extends lombok.core.LombokNode<JavacAST, JavacNode, JCTre /** * Generates an compiler error focused on the AST node represented by this node object. */ - public void addError(String message) { + @Override public void addError(String message) { ast.printMessage(Diagnostic.Kind.ERROR, message, this, null); } @@ -189,7 +189,7 @@ public class JavacNode extends lombok.core.LombokNode<JavacAST, JavacNode, JCTre /** * Generates a compiler warning focused on the AST node represented by this node object. */ - public void addWarning(String message) { + @Override public void addWarning(String message) { ast.printMessage(Diagnostic.Kind.WARNING, message, this, null); } |