diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-12-22 06:03:51 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-01-18 18:55:53 +0100 |
commit | e24ebbbf598adff2c8919dccce6e10b20021494e (patch) | |
tree | 4b50c7eef5408c86ef0f35000a2005b5252dfee0 /src/core/lombok/javac/handlers/HandleValue.java | |
parent | 3797c8320acd903d3a5b6ce5c1ad97917df65f0a (diff) | |
download | lombok-e24ebbbf598adff2c8919dccce6e10b20021494e.tar.gz lombok-e24ebbbf598adff2c8919dccce6e10b20021494e.tar.bz2 lombok-e24ebbbf598adff2c8919dccce6e10b20021494e.zip |
[configuration] implementation of flagUsage for all handlers.
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleValue.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleValue.java | 4 |
1 files changed, 4 insertions, 0 deletions
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<Value> { @Override public void handle(AnnotationValues<Value> annotation, JCAnnotation ast, JavacNode annotationNode) { @SuppressWarnings("deprecation") Class<? extends Annotation> oldExperimentalValue = lombok.experimental.Value.class; + + handleFlagUsage(annotationNode, Value.FLAG_USAGE, "@Value"); + deleteAnnotationIfNeccessary(annotationNode, Value.class, oldExperimentalValue); JavacNode typeNode = annotationNode.up(); boolean notAClass = !isClass(typeNode); |