From 0e673c6b3004a67c760bcbbabdc8abbf35c70722 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 22 May 2014 03:30:01 +0200 Subject: added conf keys (and implementation to make them work) for lombok.getter.lazy.flagUsage and lombok.equalsAndHashCode.doNotUseGetters. --- src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java | 4 +++- src/core/lombok/eclipse/handlers/HandleGetter.java | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/core/lombok/eclipse') diff --git a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java index f34e70b9..e1b02051 100644 --- a/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java +++ b/src/core/lombok/eclipse/handlers/HandleEqualsAndHashCode.java @@ -140,7 +140,9 @@ public class HandleEqualsAndHashCode extends EclipseAnnotationHandler { Getter annotationInstance = annotation.getInstance(); AccessLevel level = annotationInstance.value(); boolean lazy = annotationInstance.lazy(); + if (lazy) handleFlagUsage(annotationNode, ConfigurationKeys.GETTER_LAZY_FLAG_USAGE, "@Getter(lazy=true)"); + if (level == AccessLevel.NONE) { - if (lazy) { - annotationNode.addWarning("'lazy' does not work with AccessLevel.NONE."); - } + if (lazy) annotationNode.addWarning("'lazy' does not work with AccessLevel.NONE."); return; } -- cgit