Skip to content

Commit

Permalink
Updated NonNullExample snippet to address #3073
Browse files Browse the repository at this point in the history
  • Loading branch information
sparhidev committed Jan 20, 2022
1 parent a2df6e6 commit c387bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/usageExamples/NonNullExample_post.jpage
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c387bf3

Please sign in to comment.