aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2018-05-17 20:36:40 +0200
committerJan Rieke <rieke@subshell.com>2018-05-17 20:36:40 +0200
commit55976fec127e7674222f81e46532755081ffb454 (patch)
treeefe4a95d16e2b3fcff2ee72efbae2178f7c68794 /test
parent5d35fe3bfbd46de7410bca96e29731e8f5236618 (diff)
downloadlombok-55976fec127e7674222f81e46532755081ffb454.tar.gz
lombok-55976fec127e7674222f81e46532755081ffb454.tar.bz2
lombok-55976fec127e7674222f81e46532755081ffb454.zip
ecj: remaining type args for non-generic class builders
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-ecj/SuperBuilderBasic.java71
1 files changed, 22 insertions, 49 deletions
diff --git a/test/transform/resource/after-ecj/SuperBuilderBasic.java b/test/transform/resource/after-ecj/SuperBuilderBasic.java
index d293c8f8..88ac7e70 100644
--- a/test/transform/resource/after-ecj/SuperBuilderBasic.java
+++ b/test/transform/resource/after-ecj/SuperBuilderBasic.java
@@ -61,72 +61,45 @@ public class SuperBuilderBasic {
this.items = items;
}
public static @java.lang.SuppressWarnings("all") ParentBuilder<?, ?> builder() {
- return new ParentBuilderImpl();
+ return new ParentBuilderImpl();
}
}
-
public static @lombok.experimental.SuperBuilder class Child extends Parent {
- double field3;
-
- @java.lang.SuppressWarnings("all")
- protected Child(final ChildBuilder<?, ?> b) {
- super(b);
- this.field3 = b.field3;
- }
-
-
- @java.lang.SuppressWarnings("all")
- public static abstract class ChildBuilder<C extends Child, B extends ChildBuilder<C, B>> extends Parent.ParentBuilder<C, B> {
- @java.lang.SuppressWarnings("all")
- private double field3;
-
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- protected abstract B self();
-
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- public abstract C build();
-
- @java.lang.SuppressWarnings("all")
- public B field3(final double field3) {
+ public static abstract @java.lang.SuppressWarnings("all") class ChildBuilder<C extends Child, B extends ChildBuilder<C, B>> extends Parent.ParentBuilder<C, B> {
+ private @java.lang.SuppressWarnings("all") double field3;
+ protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self();
+ public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build();
+ public @java.lang.SuppressWarnings("all") B field3(final double field3) {
this.field3 = field3;
return self();
}
-
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- public java.lang.String toString() {
- return "SuperBuilderBasic.Child.ChildBuilder(super=" + super.toString() + ", field3=" + this.field3 + ")";
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (((("SuperBuilderBasic.Child.ChildBuilder(super=" + super.toString()) + ", field3=") + this.field3) + ")");
}
}
-
-
- @java.lang.SuppressWarnings("all")
- private static final class ChildBuilderImpl extends ChildBuilder<Child, ChildBuilderImpl> {
- @java.lang.SuppressWarnings("all")
- private ChildBuilderImpl() {
+ private static final @java.lang.SuppressWarnings("all") class ChildBuilderImpl extends ChildBuilder<Child, ChildBuilderImpl> {
+ private @java.lang.SuppressWarnings("all") ChildBuilderImpl() {
+ super();
}
-
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- protected ChildBuilderImpl self() {
+ protected @java.lang.Override @java.lang.SuppressWarnings("all") ChildBuilderImpl self() {
return this;
}
-
- @java.lang.Override
- @java.lang.SuppressWarnings("all")
- public Child build() {
+ public @java.lang.Override @java.lang.SuppressWarnings("all") Child build() {
return new Child(this);
}
}
-
- @java.lang.SuppressWarnings("all")
- public static ChildBuilder<?, ?> builder() {
+ double field3;
+ protected @java.lang.SuppressWarnings("all") Child(final ChildBuilder<?, ?> b) {
+ super(b);
+ this.field3 = b.field3;
+ }
+ public static @java.lang.SuppressWarnings("all") ChildBuilder<?, ?> builder() {
return new ChildBuilderImpl();
}
}
-
+ public SuperBuilderBasic() {
+ super();
+ }
public static void test() {
Child x = Child.builder().field3(0.0).field1(5).item("").build();
}