[fixes #2327] mostly trivial: Added this. for field access and unified code gen of build() methods for @Builder.

This commit is contained in:
Reinier Zwitserloot committed 2020-01-07 22:31:43 +01:00
1 parent 889c935ec9
commit 3f620e3b84
63 files changed
+144 -87

No files matched your search

@@ -72,7 +72,7 @@ class BuilderWithToBuilder<T> {
default:
bars = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>(this.bars));
}
return new BuilderWithToBuilder<T>(one, two, foo, bars);
return new BuilderWithToBuilder<T>(this.one, this.two, this.foo, bars);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@@ -127,7 +127,7 @@ class ConstructorWithToBuilder<T> {
}
@java.lang.SuppressWarnings("all")
public ConstructorWithToBuilder<T> build() {
return new ConstructorWithToBuilder<T>(mOne, baz, bars);
return new ConstructorWithToBuilder<T>(this.mOne, this.baz, this.bars);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")