From 4b878f9ba996f852ce555c3024512ae34e34774e Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 23 May 2014 04:07:39 +0200 Subject: Added confkey to make @NonNull generate a different exception because of the IllegalArgumentException vs. NullPointerException that we really don’t want to get into. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../after-delombok/NonNullWithAlternateException.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/transform/resource/after-delombok/NonNullWithAlternateException.java (limited to 'test/transform/resource/after-delombok') 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 -- cgit