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-ecj/NonNullWithAlternateException.java | |
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-ecj/NonNullWithAlternateException.java')
-rw-r--r-- | test/transform/resource/after-ecj/NonNullWithAlternateException.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/NonNullWithAlternateException.java b/test/transform/resource/after-ecj/NonNullWithAlternateException.java new file mode 100644 index 00000000..43edeb8c --- /dev/null +++ b/test/transform/resource/after-ecj/NonNullWithAlternateException.java @@ -0,0 +1,20 @@ +public class NonNullWithAlternateException { + private @lombok.NonNull @lombok.Setter String test; + public NonNullWithAlternateException() { + super(); + } + public void testMethod(@lombok.NonNull String arg) { + if ((arg == null)) + { + throw new java.lang.IllegalArgumentException("arg"); + } + System.out.println(arg); + } + public @java.lang.SuppressWarnings("all") void setTest(final @lombok.NonNull String test) { + if ((test == null)) + { + throw new java.lang.IllegalArgumentException("test"); + } + this.test = test; + } +}
\ No newline at end of file |