improve with examples

This commit is contained in:
Roel Spilker committed 2019-09-12 22:06:02 +02:00
1 parent 80c1b2d2e7
commit 1260297f73
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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();