diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-10-05 21:58:00 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-10-05 21:58:00 +0200 |
commit | e94a5f9ee3e003c6b889168796bc010072177d14 (patch) | |
tree | 8ab3e6627b168738ae8a9626044379551ceebb45 /src/core/lombok/eclipse/handlers | |
parent | 264c66b53f29c49238ada2c4b93d91b0a5bc9b41 (diff) | |
download | lombok-e94a5f9ee3e003c6b889168796bc010072177d14.tar.gz lombok-e94a5f9ee3e003c6b889168796bc010072177d14.tar.bz2 lombok-e94a5f9ee3e003c6b889168796bc010072177d14.zip |
[Fixes #807] The NonNull annotation can now be used documentary style on params of abstract methods. The warning has been eliminated.
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleNonNull.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleNonNull.java b/src/core/lombok/eclipse/handlers/HandleNonNull.java index d904de2f..d09993ed 100644 --- a/src/core/lombok/eclipse/handlers/HandleNonNull.java +++ b/src/core/lombok/eclipse/handlers/HandleNonNull.java @@ -91,7 +91,7 @@ public class HandleNonNull extends EclipseAnnotationHandler<NonNull> { if (isGenerated(declaration)) return; if (declaration.isAbstract()) { - annotationNode.addWarning("@NonNull is meaningless on a parameter of an abstract method."); + // This used to be a warning, but as @NonNull also has a documentary purpose, better to not warn about this. Since 1.16.7 return; } |