From b262ed905a299215d99664664930b5e013284d63 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 3 Sep 2009 02:22:07 +0200 Subject: Added an AccessLevel.NONE to suppress generating getters and setters (useful in combination with @Data). Addresses issue #37. --- src/lombok/eclipse/handlers/HandleGetter.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lombok/eclipse/handlers/HandleGetter.java') 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 { public boolean handle(AnnotationValues 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); } -- cgit