mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 20:01:38 +00:00
10fab5b77a
updated NonNull check
14 lines
292 B
Plaintext
14 lines
292 B
Plaintext
import lombok.AccessLevel;
|
|
import lombok.NonNull;
|
|
import lombok.With;
|
|
|
|
public class WithExample {
|
|
@With(AccessLevel.PROTECTED) @NonNull private final String name;
|
|
@With private final int age;
|
|
|
|
public WithExample(@NonNull String name, int age) {
|
|
this.name = name;
|
|
this.age = age;
|
|
}
|
|
}
|