mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 06:16:14 +00:00
Duplicate builder tests with setter prefix
This commit is contained in:
1 parent
cc070254a6
commit
36287f2ff9
68 files changed
+4015
No files matched your search
+40
@@ -0,0 +1,40 @@
|
||||
class BuilderWithExistingBuilderClass<T, K extends Number> {
|
||||
public static <Z extends Number> BuilderWithExistingBuilderClass<String, Z> staticMethod(Z arg1, boolean arg2, String arg3) {
|
||||
return null;
|
||||
}
|
||||
public static class BuilderWithExistingBuilderClassBuilder<Z extends Number> {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private boolean arg2;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private String arg3;
|
||||
private Z arg1;
|
||||
public void withArg2(boolean arg) {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderWithExistingBuilderClassBuilder() {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderWithExistingBuilderClassBuilder<Z> withArg1(final Z arg1) {
|
||||
this.arg1 = arg1;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderWithExistingBuilderClassBuilder<Z> withArg3(final String arg3) {
|
||||
this.arg3 = arg3;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderWithExistingBuilderClass<String, Z> build() {
|
||||
return BuilderWithExistingBuilderClass.<Z>staticMethod(arg1, arg2, arg3);
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder(arg1=" + this.arg1 + ", arg2=" + this.arg2 + ", arg3=" + this.arg3 + ")";
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public static <Z extends Number> BuilderWithExistingBuilderClassBuilder<Z> builder() {
|
||||
return new BuilderWithExistingBuilderClassBuilder<Z>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user