aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/NonNullExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples/NonNullExample_post.jpage')
-rw-r--r--website/usageExamples/NonNullExample_post.jpage2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/usageExamples/NonNullExample_post.jpage b/website/usageExamples/NonNullExample_post.jpage
index 24175e06..bb67b3f6 100644
--- a/website/usageExamples/NonNullExample_post.jpage
+++ b/website/usageExamples/NonNullExample_post.jpage
@@ -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();
}