diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-05-23 04:07:39 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-05-23 04:07:39 +0200 |
commit | 4b878f9ba996f852ce555c3024512ae34e34774e (patch) | |
tree | 51ac37ecbb2e5f35b62523f9eec896211f758072 /test/transform/resource/after-delombok | |
parent | 57c92478a92360a1d1547794d5a5d0b5393f59f6 (diff) | |
download | lombok-4b878f9ba996f852ce555c3024512ae34e34774e.tar.gz lombok-4b878f9ba996f852ce555c3024512ae34e34774e.tar.bz2 lombok-4b878f9ba996f852ce555c3024512ae34e34774e.zip |
Added confkey to make @NonNull generate a different exception because of the IllegalArgumentException vs. NullPointerException that we really don’t want to get into.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/NonNullWithAlternateException.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/NonNullWithAlternateException.java b/test/transform/resource/after-delombok/NonNullWithAlternateException.java new file mode 100644 index 00000000..d4a2f657 --- /dev/null +++ b/test/transform/resource/after-delombok/NonNullWithAlternateException.java @@ -0,0 +1,17 @@ +public class NonNullWithAlternateException { + @lombok.NonNull + private String test; + public void testMethod(@lombok.NonNull String arg) { + if (arg == null) { + throw new java.lang.IllegalArgumentException("arg"); + } + System.out.println(arg); + } + @java.lang.SuppressWarnings("all") + public void setTest(@lombok.NonNull final String test) { + if (test == null) { + throw new java.lang.IllegalArgumentException("test"); + } + this.test = test; + } +}
\ No newline at end of file |