aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'src/lombok/eclipse/handlers')
-rw-r--r--src/lombok/eclipse/handlers/HandleGetter.java2
-rw-r--r--src/lombok/eclipse/handlers/HandleSetter.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lombok/eclipse/handlers/HandleGetter.java b/src/lombok/eclipse/handlers/HandleGetter.java
index 2ba3876a..e83b2cc5 100644
--- a/src/lombok/eclipse/handlers/HandleGetter.java
+++ b/src/lombok/eclipse/handlers/HandleGetter.java
@@ -77,6 +77,8 @@ public class HandleGetter implements EclipseAnnotationHandler<Getter> {
public boolean handle(AnnotationValues<Getter> annotation, Annotation ast, Node annotationNode) {
Node fieldNode = annotationNode.up();
AccessLevel level = annotation.getInstance().value();
+ if ( level == AccessLevel.NONE ) return true;
+
return createGetterForField(level, fieldNode, annotationNode, annotationNode.get(), true);
}
diff --git a/src/lombok/eclipse/handlers/HandleSetter.java b/src/lombok/eclipse/handlers/HandleSetter.java
index 8c47a43b..636226bd 100644
--- a/src/lombok/eclipse/handlers/HandleSetter.java
+++ b/src/lombok/eclipse/handlers/HandleSetter.java
@@ -85,6 +85,8 @@ public class HandleSetter implements EclipseAnnotationHandler<Setter> {
Node fieldNode = annotationNode.up();
if ( fieldNode.getKind() != Kind.FIELD ) return false;
AccessLevel level = annotation.getInstance().value();
+ if ( level == AccessLevel.NONE ) return true;
+
return createSetterForField(level, fieldNode, annotationNode, annotationNode.get(), true);
}