From e24ebbbf598adff2c8919dccce6e10b20021494e Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 22 Dec 2013 06:03:51 +0100 Subject: [configuration] implementation of flagUsage for all handlers. --- src/core/lombok/javac/handlers/HandleValue.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/lombok/javac/handlers/HandleValue.java') diff --git a/src/core/lombok/javac/handlers/HandleValue.java b/src/core/lombok/javac/handlers/HandleValue.java index 15fb4781..aedde1e1 100644 --- a/src/core/lombok/javac/handlers/HandleValue.java +++ b/src/core/lombok/javac/handlers/HandleValue.java @@ -21,6 +21,7 @@ */ package lombok.javac.handlers; +import static lombok.core.handlers.HandlerUtil.*; import static lombok.javac.handlers.JavacHandlerUtil.*; import java.lang.annotation.Annotation; @@ -50,6 +51,9 @@ public class HandleValue extends JavacAnnotationHandler { @Override public void handle(AnnotationValues annotation, JCAnnotation ast, JavacNode annotationNode) { @SuppressWarnings("deprecation") Class oldExperimentalValue = lombok.experimental.Value.class; + + handleFlagUsage(annotationNode, Value.FLAG_USAGE, "@Value"); + deleteAnnotationIfNeccessary(annotationNode, Value.class, oldExperimentalValue); JavacNode typeNode = annotationNode.up(); boolean notAClass = !isClass(typeNode); -- cgit