aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac/JavacNode.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-18 16:42:33 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-18 16:42:33 +0200
commitbd3966af0e5d2ce948bf22dcb99227e0df5c6f13 (patch)
treeaef91399af0bef930dd18acb8bf0bb0f4817557e /src/lombok/javac/JavacNode.java
parent56616f3bec6d8eda8c2bcf0550490f0098fb7fed (diff)
parent1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (diff)
downloadlombok-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.java10
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);
}