aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples
diff options
context:
space:
mode:
authorDurai46 <86647861+Durai46@users.noreply.github.com>2021-08-23 15:43:33 +0530
committerRoel Spilker <r.spilker@gmail.com>2021-12-12 02:36:21 +0100
commit10fab5b77a04f5c89e4ad7fe6937055d36c4d1ee (patch)
tree77a226d02aa6fb0590393d7364580e3cbfc8d96a /website/usageExamples
parent16fcff1b44911b80c0a29a18e0066f5ca936df80 (diff)
downloadlombok-10fab5b77a04f5c89e4ad7fe6937055d36c4d1ee.tar.gz
lombok-10fab5b77a04f5c89e4ad7fe6937055d36c4d1ee.tar.bz2
lombok-10fab5b77a04f5c89e4ad7fe6937055d36c4d1ee.zip
Update WithExample_pre.jpage
updated NonNull check
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;
}