diff options
Diffstat (limited to 'src/lombok')
-rw-r--r-- | src/lombok/javac/JavacAnnotationHandler.java | 2 | ||||
-rw-r--r-- | src/lombok/javac/handlers/HandleGetter.java | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lombok/javac/JavacAnnotationHandler.java b/src/lombok/javac/JavacAnnotationHandler.java index ce3c5fd7..0df83346 100644 --- a/src/lombok/javac/JavacAnnotationHandler.java +++ b/src/lombok/javac/JavacAnnotationHandler.java @@ -7,5 +7,5 @@ import lombok.core.AnnotationValues; import com.sun.tools.javac.tree.JCTree.JCAnnotation; public interface JavacAnnotationHandler<T extends Annotation> { - void handle(AnnotationValues<T> annotation, JCAnnotation ast, JavacAST.Node annotedElement); + void handle(AnnotationValues<T> annotation, JCAnnotation ast, JavacAST.Node annotationNode); } diff --git a/src/lombok/javac/handlers/HandleGetter.java b/src/lombok/javac/handlers/HandleGetter.java index 6e695c63..ef4d9755 100644 --- a/src/lombok/javac/handlers/HandleGetter.java +++ b/src/lombok/javac/handlers/HandleGetter.java @@ -25,19 +25,19 @@ import com.sun.tools.javac.util.Name; @ProviderFor(JavacAnnotationHandler.class) public class HandleGetter implements JavacAnnotationHandler<Getter> { - @Override public void handle(AnnotationValues<Getter> annotation, JCAnnotation ast, JavacAST.Node node) { - if ( node.up().getKind() != Kind.FIELD ) { - node.addError("@Getter is only supported on a field."); + @Override public void handle(AnnotationValues<Getter> annotation, JCAnnotation ast, JavacAST.Node annotationNode) { + if ( annotationNode.up().getKind() != Kind.FIELD ) { + annotationNode.addError("@Getter is only supported on a field."); return; } Getter getter = annotation.getInstance(); - JCClassDecl javacClassTree = (JCClassDecl) node.up().up().get(); + JCClassDecl javacClassTree = (JCClassDecl) annotationNode.up().up().get(); int access = toJavacModifier(getter.value()); - MethodTree getterMethod = createGetter(access, node.up(), node.getTreeMaker()); + MethodTree getterMethod = createGetter(access, annotationNode.up(), annotationNode.getTreeMaker()); javacClassTree.defs = javacClassTree.defs.append((JCTree)getterMethod); } |