mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 02:17:12 +00:00
improve with examples
This commit is contained in:
1 parent
80c1b2d2e7
commit
1260297f73
2 files changed
+6
-6
No files matched your search
@@ -3,8 +3,8 @@ import lombok.NonNull;
|
||||
import lombok.With;
|
||||
|
||||
public class WithExample {
|
||||
@With private final int age;
|
||||
@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();
|
||||
|
||||
Reference in new issue
Block a user