aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleWither.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-12-22 06:03:51 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-01-18 18:55:53 +0100
commite24ebbbf598adff2c8919dccce6e10b20021494e (patch)
tree4b50c7eef5408c86ef0f35000a2005b5252dfee0 /src/core/lombok/javac/handlers/HandleWither.java
parent3797c8320acd903d3a5b6ce5c1ad97917df65f0a (diff)
downloadlombok-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/HandleWither.java')
-rw-r--r--src/core/lombok/javac/handlers/HandleWither.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/HandleWither.java b/src/core/lombok/javac/handlers/HandleWither.java
index 85ac3e37..4b267ba2 100644
--- a/src/core/lombok/javac/handlers/HandleWither.java
+++ b/src/core/lombok/javac/handlers/HandleWither.java
@@ -21,6 +21,7 @@
*/
package lombok.javac.handlers;
+import static lombok.core.handlers.HandlerUtil.*;
import static lombok.javac.Javac.*;
import static lombok.javac.handlers.JavacHandlerUtil.*;
@@ -119,6 +120,8 @@ public class HandleWither extends JavacAnnotationHandler<Wither> {
}
@Override public void handle(AnnotationValues<Wither> annotation, JCAnnotation ast, JavacNode annotationNode) {
+ handleFlagUsage(annotationNode, Wither.FLAG_USAGE, "@Wither");
+
Collection<JavacNode> fields = annotationNode.upFromAnnotationToFields();
deleteAnnotationIfNeccessary(annotationNode, Wither.class);
deleteImportFromCompilationUnit(annotationNode, "lombok.AccessLevel");