From da59d2d6375afcfcf6cb43288adba61cb99a49e8 Mon Sep 17 00:00:00 2001 From: Jan Rieke Date: Tue, 11 Sep 2018 16:59:29 +0200 Subject: SuperBuilder: generate toBuilder method (ecj) --- test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/transform') diff --git a/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java b/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java index 6dd06fb7..2b294d65 100644 --- a/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java +++ b/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java @@ -82,7 +82,7 @@ public class SuperBuilderBasicToBuilder { public ChildBuilder() { super(); } - protected @java.lang.Override @java.lang.SuppressWarnings("all") B $fillValuesFrom(C instance) { + protected @java.lang.Override @java.lang.SuppressWarnings("all") B $fillValuesFrom(final C instance) { super.$fillValuesFrom(instance); field3(instance.field3); return self(); @@ -120,10 +120,10 @@ public class SuperBuilderBasicToBuilder { return new ChildBuilderImpl().$fillValuesFrom(this); } } - public SuperBuilderBasic() { + public SuperBuilderBasicToBuilder() { super(); } public static void test() { - Child x = Child.builder().field3(0.0).field1(5).item("").build(); + Child x = Child.builder().field3(0.0).field1(5).item("").build().toBuilder().build(); } } -- cgit