mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 10:18:46 +00:00
[fixes #2083] adds feature ‘access level’ to @Builder
This commit is contained in:
1 parent
ec04d9d7f0
commit
a318029830
19 files changed
+201
-167
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import java.util.List;
|
||||
@lombok.Builder class BuilderSimple<T> {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderSimpleBuilder<T> {
|
||||
@lombok.Builder(access = lombok.AccessLevel.PROTECTED) class BuilderSimple<T> {
|
||||
protected static @java.lang.SuppressWarnings("all") class BuilderSimpleBuilder<T> {
|
||||
private @java.lang.SuppressWarnings("all") int yes;
|
||||
private @java.lang.SuppressWarnings("all") List<T> also;
|
||||
@java.lang.SuppressWarnings("all") BuilderSimpleBuilder() {
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
this.yes = yes;
|
||||
this.also = also;
|
||||
}
|
||||
public static @java.lang.SuppressWarnings("all") <T>BuilderSimpleBuilder<T> builder() {
|
||||
protected static @java.lang.SuppressWarnings("all") <T>BuilderSimpleBuilder<T> builder() {
|
||||
return new BuilderSimpleBuilder<T>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user