mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 00:17:45 +00:00
Update WithExample_pre.jpage
updated NonNull check
This commit is contained in:
1 parent
16fcff1b44
commit
10fab5b77a
1 file changed
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user