aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleGetter.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2009-11-27 04:18:28 +0100
committerRoel Spilker <r.spilker@gmail.com>2009-11-27 04:23:41 +0100
commit391db3dcecdd0d94eb76b656e655346891b02bb4 (patch)
tree592d79167f4f5a6ce92813cfd962fa51228d3ee0 /src/core/lombok/javac/handlers/HandleGetter.java
parente54c3f36e3122dfe34a119178cfcca2dcdbad998 (diff)
downloadlombok-391db3dcecdd0d94eb76b656e655346891b02bb4.tar.gz
lombok-391db3dcecdd0d94eb76b656e655346891b02bb4.tar.bz2
lombok-391db3dcecdd0d94eb76b656e655346891b02bb4.zip
Thorough work on inserting comments in the proper place for delombok; should now work fine with GWT native methods!
NON-NLS-1 is still theoretically problematic, but that'll be a fix for another day. Also added ability to recognize that nothing has changed, which will copy the original file instead of reparsing it.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleGetter.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleGetter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/HandleGetter.java b/src/core/lombok/javac/handlers/HandleGetter.java
index e60e426d..b0343eaf 100644
--- a/src/core/lombok/javac/handlers/HandleGetter.java
+++ b/src/core/lombok/javac/handlers/HandleGetter.java
@@ -80,8 +80,10 @@ public class HandleGetter implements JavacAnnotationHandler<Getter> {
}
@Override public boolean handle(AnnotationValues<Getter> annotation, JCAnnotation ast, JavacNode annotationNode) {
+ markAnnotationAsProcessed(annotationNode, Getter.class);
JavacNode fieldNode = annotationNode.up();
AccessLevel level = annotation.getInstance().value();
+
if (level == AccessLevel.NONE) return true;
return createGetterForField(level, fieldNode, annotationNode, true);