Update WithExample_pre.jpage

updated NonNull check
This commit is contained in:
Durai46 authored and Roel Spilker committed 2021-12-12 02:36:21 +01:00
1 parent 16fcff1b44
commit 10fab5b77a
1 file changed
+1 -2
+1 -2
View File
@@ -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;
}