Updated NonNullExample snippet to address #3073

This commit is contained in:
Shubhendu Parhi authored and GitHub committed 2022-01-20 13:41:52 +05:30
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();
}