aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples')
-rw-r--r--website/usageExamples/WithExample_pre.jpage3
1 files changed, 1 insertions, 2 deletions
diff --git a/website/usageExamples/WithExample_pre.jpage b/website/usageExamples/WithExample_pre.jpage
index 2f78020a..f03ee891 100644
--- a/website/usageExamples/WithExample_pre.jpage
+++ b/website/usageExamples/WithExample_pre.jpage
@@ -6,8 +6,7 @@ public class WithExample {
@With(AccessLevel.PROTECTED) @NonNull private final String name;
@With private final int age;
- public WithExample(String name, int age) {
- if (name == null) throw new NullPointerException();
+ public WithExample(@NonNull String name, int age) {
this.name = name;
this.age = age;
}