mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 14:17:48 +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 @@
|
||||
@lombok.Builder(setterPrefix = "with") class BuilderWithNonNull {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderWithNonNullBuilder {
|
||||
private @java.lang.SuppressWarnings("all") String id;
|
||||
@java.lang.SuppressWarnings("all") BuilderWithNonNullBuilder() {
|
||||
super();
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderWithNonNullBuilder withId(final @lombok.NonNull String id) {
|
||||
if ((id == null))
|
||||
{
|
||||
throw new java.lang.NullPointerException("id is marked non-null but is null");
|
||||
}
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderWithNonNull build() {
|
||||
return new BuilderWithNonNull(id);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
||||
return (("BuilderWithNonNull.BuilderWithNonNullBuilder(id=" + this.id) + ")");
|
||||
}
|
||||
}
|
||||
private final @lombok.NonNull String id;
|
||||
@java.lang.SuppressWarnings("all") BuilderWithNonNull(final @lombok.NonNull String id) {
|
||||
super();
|
||||
if ((id == null))
|
||||
{
|
||||
throw new java.lang.NullPointerException("id is marked non-null but is null");
|
||||
}
|
||||
this.id = id;
|
||||
}
|
||||
public static @java.lang.SuppressWarnings("all") BuilderWithNonNullBuilder builder() {
|
||||
return new BuilderWithNonNullBuilder();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user