mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 20:15:09 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user