Changed the lombok.nonNull.exceptionType configkey to be an enum, partly to enforce only sensible exceptions and partly to make it possible to have the message be ‘x is null’ when throwing IAEs.

This commit is contained in:
Reinier Zwitserloot committed 2014-05-27 20:29:54 +02:00
1 parent 4b878f9ba9
commit 713822db98
16 files changed
+169 -79

No files matched your search

@@ -6,14 +6,14 @@ public class NonNullWithAlternateException {
public void testMethod(@lombok.NonNull String arg) {
if ((arg == null))
{
throw new java.lang.IllegalArgumentException("arg");
throw new java.lang.IllegalArgumentException("arg is null");
}
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");
throw new java.lang.IllegalArgumentException("test is null");
}
this.test = test;
}