aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-07 22:31:43 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-07 22:31:43 +0100
commit3f620e3b84dbb8d6625b4c13ca8ee9fd0aa5777c (patch)
tree4c06e0d16ba4d5e0fc2133b6bc9ed5dca8a63e49 /test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java
parent889c935ec9f0e45bba1e88b0f256e1f29a734f39 (diff)
downloadlombok-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.java8
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) + ")");