diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-07 22:31:43 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-07 22:31:43 +0100 |
commit | 3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c (patch) | |
tree | 4c06e0d16ba4d5e0fc2133b6bc9ed5dca8a63e49 /test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java | |
parent | 889c935ec9f0e45bba1e88b0f256e1f29a734f39 (diff) | |
download | lombok-3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c.tar.gz lombok-3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c.tar.bz2 lombok-3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c.zip |
[fixes #2327] mostly trivial: Added this. for field access and unified code gen of build() methods for `@Builder`.
Diffstat (limited to 'test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java')
-rw-r--r-- | test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java index b8040d02..4355ee5c 100644 --- a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java +++ b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java @@ -26,7 +26,13 @@ final @Builder @Value class ConstructorsWithBuilderDefaults<T> { return this; } public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults<T> build() { - return new ConstructorsWithBuilderDefaults<T>((z$set ? z$value : ConstructorsWithBuilderDefaults.<T>$default$z()), (x$set ? x$value : ConstructorsWithBuilderDefaults.<T>$default$x()), q); + java.util.List<T> z$value = this.z$value; + if ((! this.z$set)) + z$value = ConstructorsWithBuilderDefaults.<T>$default$z(); + T x$value = this.x$value; + if ((! this.x$set)) + x$value = ConstructorsWithBuilderDefaults.<T>$default$x(); + return new ConstructorsWithBuilderDefaults<T>(z$value, x$value, this.q); } public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { return (((((("ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder(z$value=" + this.z$value) + ", x$value=") + this.x$value) + ", q=") + this.q) + ")"); |