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/eclipse/handlers/HandleNonNull.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/eclipse/handlers/HandleNonNull.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleNonNull.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleNonNull.java b/src/core/lombok/eclipse/handlers/HandleNonNull.java index 634cb2d9..b255d4e1 100644 --- a/src/core/lombok/eclipse/handlers/HandleNonNull.java +++ b/src/core/lombok/eclipse/handlers/HandleNonNull.java @@ -21,6 +21,7 @@ */ package lombok.eclipse.handlers; +import static lombok.core.handlers.HandlerUtil.*; import static lombok.eclipse.Eclipse.isPrimitive; import static lombok.eclipse.handlers.EclipseHandlerUtil.*; @@ -57,6 +58,8 @@ import org.mangosdk.spi.ProviderFor; @HandlerPriority(value = 512) // 2^9; onParameter=@__(@NonNull) has to run first. public class HandleNonNull extends EclipseAnnotationHandler<NonNull> { @Override public void handle(AnnotationValues<NonNull> annotation, Annotation ast, EclipseNode annotationNode) { + handleFlagUsage(annotationNode, NonNull.FLAG_USAGE, "@NonNull"); + if (annotationNode.up().getKind() == Kind.FIELD) { // This is meaningless unless the field is used to generate a method (@Setter, @RequiredArgsConstructor, etc), // but in that case those handlers will take care of it. However, we DO check if the annotation is applied to |