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 /test/transform/resource/after-ecj | |
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 'test/transform/resource/after-ecj')
-rw-r--r-- | test/transform/resource/after-ecj/NonNullOnParameterOfDefaultMethod.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/NonNullOnParameterOfDefaultMethod.java b/test/transform/resource/after-ecj/NonNullOnParameterOfDefaultMethod.java new file mode 100644 index 00000000..85e99702 --- /dev/null +++ b/test/transform/resource/after-ecj/NonNullOnParameterOfDefaultMethod.java @@ -0,0 +1,10 @@ +interface NonNullOnParameterOfDefaultMethod { + void test(@lombok.NonNull String arg); + default void test2(@lombok.NonNull String arg) { + if ((arg == null)) + { + throw new java.lang.NullPointerException("arg"); + } + System.out.println(arg); + } +} |