mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 14:16:39 +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
@@ -0,0 +1,34 @@
|
||||
import java.util.List;
|
||||
class BuilderWithPrefix<T> {
|
||||
private int unprefixed;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderWithPrefix(final int unprefixed) {
|
||||
this.unprefixed = unprefixed;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
protected static class BuilderWithPrefixBuilder<T> {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private int unprefixed;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderWithPrefixBuilder() {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderWithPrefixBuilder<T> withUnprefixed(final int unprefixed) {
|
||||
this.unprefixed = unprefixed;
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderWithPrefix<T> build() {
|
||||
return new BuilderWithPrefix<T>(unprefixed);
|
||||
}
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "BuilderWithPrefix.BuilderWithPrefixBuilder(unprefixed=" + this.unprefixed + ")";
|
||||
}
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
protected static <T> BuilderWithPrefixBuilder<T> builder() {
|
||||
return new BuilderWithPrefixBuilder<T>();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user