From 6e2d23fdd7613de9650ffaf00c6e24a6ead0d74b Mon Sep 17 00:00:00 2001 From: Jan Rieke Date: Fri, 7 Feb 2020 14:28:46 +0100 Subject: setter prefixes for SuperBuilder setter prefixes for SuperBuilder [javac] better javadoc for the SuperBuilder setterPrefix value setter prefixes for SuperBuilder [ecj] add test for SuperBuilder setter method customization fix setter method customization with setterPrefix --- test/transform/resource/after-ecj/SuperBuilderCustomized.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/transform/resource/after-ecj/SuperBuilderCustomized.java') diff --git a/test/transform/resource/after-ecj/SuperBuilderCustomized.java b/test/transform/resource/after-ecj/SuperBuilderCustomized.java index 40d1f384..32317f6a 100644 --- a/test/transform/resource/after-ecj/SuperBuilderCustomized.java +++ b/test/transform/resource/after-ecj/SuperBuilderCustomized.java @@ -10,12 +10,12 @@ public class SuperBuilderCustomized { field1 = 0; return self(); } - protected abstract @java.lang.SuppressWarnings("all") B self(); - public abstract @java.lang.SuppressWarnings("all") C build(); - public @java.lang.SuppressWarnings("all") B field1(final int field1) { - this.field1 = field1; + public B field1(int field1) { + this.field1 = (field1 + 1); return self(); } + protected abstract @java.lang.SuppressWarnings("all") B self(); + public abstract @java.lang.SuppressWarnings("all") C build(); public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { return (("SuperBuilderCustomized.Parent.ParentBuilder(field1=" + this.field1) + ")"); } -- cgit