mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
[fixes #2327] mostly trivial: Added this. for field access and unified code gen of build() methods for @Builder.
This commit is contained in:
63 files changed
+144
-87
No files matched your search
@@ -25,7 +25,13 @@ public final @Value @Builder class BuilderDefaults {
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderDefaults build() {
|
||||
return new BuilderDefaults((x$set ? x$value : BuilderDefaults.$default$x()), name, (z$set ? z$value : BuilderDefaults.$default$z()));
|
||||
int x$value = this.x$value;
|
||||
if ((! this.x$set))
|
||||
x$value = BuilderDefaults.$default$x();
|
||||
long z$value = this.z$value;
|
||||
if ((! this.z$set))
|
||||
z$value = BuilderDefaults.$default$z();
|
||||
return new BuilderDefaults(x$value, this.name, z$value);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
||||
return (((((("BuilderDefaults.BuilderDefaultsBuilder(x$value=" + this.x$value) + ", name=") + this.name) + ", z$value=") + this.z$value) + ")");
|
||||
|
||||
Reference in new issue
Block a user