mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
Updated NonNullExample snippet to address #3073
This commit is contained in:
1 parent
a2df6e6cc4
commit
c387bf3a92
1 file changed
+1
-1
@@ -6,7 +6,7 @@ public class NonNullExample extends Something {
|
||||
public NonNullExample(@NonNull Person person) {
|
||||
super("Hello");
|
||||
if (person == null) {
|
||||
throw new NullPointerException("person is marked @NonNull but is null");
|
||||
throw new NullPointerException("person is marked non-null but is null");
|
||||
}
|
||||
this.name = person.getName();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user