mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +00:00
improved and added to test cases for @Builder.
Eclipse's implementation continues to pass them all.
This commit is contained in:
1 parent
648c3eeee6
commit
9066d57ed9
4 files changed
+107
-1
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import java.util.List;
|
||||
@lombok.experimental.Builder class BuilderSimple<T> {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderSimpleBuilder<T> {
|
||||
private int yes;
|
||||
private List<T> also;
|
||||
@java.lang.SuppressWarnings("all") BuilderSimpleBuilder() {
|
||||
super();
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSimpleBuilder<T> yes(final int yes) {
|
||||
this.yes = yes;
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSimpleBuilder<T> also(final List<T> also) {
|
||||
this.also = also;
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSimple<T> build() {
|
||||
return new BuilderSimple<T>(yes, also);
|
||||
}
|
||||
}
|
||||
private final int noshow = 0;
|
||||
private final int yes;
|
||||
private List<T> also;
|
||||
private int $butNotMe;
|
||||
private @java.lang.SuppressWarnings("all") BuilderSimple(final int yes, final List<T> also) {
|
||||
super();
|
||||
this.yes = yes;
|
||||
this.also = also;
|
||||
}
|
||||
public static @java.lang.SuppressWarnings("all") <T>BuilderSimpleBuilder<T> builder() {
|
||||
return new BuilderSimpleBuilder<T>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user