mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 04:18:44 +00:00
finished tests for builder (added after-delombok versions).
This commit is contained in:
1 parent
e047d2b94e
commit
eb3d32c718
3 files changed
+114
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import java.util.List;
|
||||
class BuilderComplex {
|
||||
private static <T extends Number> void testVoidWithGenerics(T number, int arg2, String arg3, BuilderComplex selfRef) {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static class VoidBuilder<T extends Number> {
|
||||
private T number;
|
||||
private int arg2;
|
||||
private String arg3;
|
||||
private BuilderComplex selfRef;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
VoidBuilder() {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public VoidBuilder<T> number(final T number) {
|
||||
this.number = number;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public VoidBuilder<T> arg2(final int arg2) {
|
||||
this.arg2 = arg2;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public VoidBuilder<T> arg3(final String arg3) {
|
||||
this.arg3 = arg3;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public VoidBuilder<T> selfRef(final BuilderComplex selfRef) {
|
||||
this.selfRef = selfRef;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public void execute() {
|
||||
BuilderComplex.<T>testVoidWithGenerics(number, arg2, arg3, selfRef);
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static <T extends Number> VoidBuilder<T> builder() {
|
||||
return new VoidBuilder<T>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user