diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-17 20:54:25 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-17 20:54:25 +0200 |
commit | 5bdfa539f2f4277eda9ab414dab167a4d6d883e9 (patch) | |
tree | 67599a0e39075c97affacd7eb5b271e9d5bebecf /src/lombok/javac/handlers/HandleGetter.java | |
parent | 981e7db3541fc030a42e2bf5c2a18860b2fb8eeb (diff) | |
download | lombok-5bdfa539f2f4277eda9ab414dab167a4d6d883e9.tar.gz lombok-5bdfa539f2f4277eda9ab414dab167a4d6d883e9.tar.bz2 lombok-5bdfa539f2f4277eda9ab414dab167a4d6d883e9.zip |
Just renamed some parameters to more sensical names.
Diffstat (limited to 'src/lombok/javac/handlers/HandleGetter.java')
-rw-r--r-- | src/lombok/javac/handlers/HandleGetter.java | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |