mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 09:13:36 +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
@@ -6,7 +6,7 @@ public class NonNullExample extends Something {
|
||||
public NonNullExample(@NonNull Person person) {
|
||||
super("Hello");
|
||||
if (person == null) {
|
||||
throw new NullPointerException("person");
|
||||
throw new NullPointerException("person is marked @NonNull but is null");
|
||||
}
|
||||
this.name = person.getName();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user