mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 06:16:14 +00:00
@NonNull now uses a slightly longer exception message.
This commit is contained in:
1 parent
198efc1b27
commit
a0b901c3c0
23 files changed
+52
-52
No files matched your search
@@ -3,14 +3,14 @@ public class NonNullWithAlternateException {
|
||||
private String test;
|
||||
public void testMethod(@lombok.NonNull String arg) {
|
||||
if (arg == null) {
|
||||
throw new java.lang.IllegalArgumentException("arg is null");
|
||||
throw new java.lang.IllegalArgumentException("arg is marked @NonNull but is null");
|
||||
}
|
||||
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 is null");
|
||||
throw new java.lang.IllegalArgumentException("test is marked @NonNull but is null");
|
||||
}
|
||||
this.test = test;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user