diff options
author | Jan Rieke <rieke@subshell.com> | 2018-05-14 17:59:45 +0200 |
---|---|---|
committer | Jan Rieke <rieke@subshell.com> | 2018-05-14 17:59:45 +0200 |
commit | 5d35fe3bfbd46de7410bca96e29731e8f5236618 (patch) | |
tree | 5a82bc42ac3d0876faa7c5a180e1360b6e8f9f7a /test/transform/resource/after-ecj | |
parent | fb401d4887895d1ebb8529d6323797f1bc8072a2 (diff) | |
download | lombok-5d35fe3bfbd46de7410bca96e29731e8f5236618.tar.gz lombok-5d35fe3bfbd46de7410bca96e29731e8f5236618.tar.bz2 lombok-5d35fe3bfbd46de7410bca96e29731e8f5236618.zip |
ecj: method body for self(); type args for BuilderImpl extends clause
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r-- | test/transform/resource/after-ecj/SuperBuilderBasic.java | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/test/transform/resource/after-ecj/SuperBuilderBasic.java b/test/transform/resource/after-ecj/SuperBuilderBasic.java index 7315760c..d293c8f8 100644 --- a/test/transform/resource/after-ecj/SuperBuilderBasic.java +++ b/test/transform/resource/after-ecj/SuperBuilderBasic.java @@ -12,27 +12,28 @@ public class SuperBuilderBasic { }
public @java.lang.SuppressWarnings("all") B item(String item) {
if ((this.items == null))
- this.items = new java.util.ArrayList<String>();
+ this.items = new java.util.ArrayList<String>();
this.items.add(item);
return self();
}
public @java.lang.SuppressWarnings("all") B items(java.util.Collection<? extends String> items) {
if ((this.items == null))
- this.items = new java.util.ArrayList<String>();
+ this.items = new java.util.ArrayList<String>();
this.items.addAll(items);
return self();
}
public @java.lang.SuppressWarnings("all") B clearItems() {
if ((this.items != null))
- this.items.clear();
+ this.items.clear();
return self();
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
- return "SuperBuilderBasic.Parent.ParentBuilder(field1=" + this.field1 + ", items=" + this.items + ")";
+ return (((("SuperBuilderBasic.Parent.ParentBuilder(field1=" + this.field1) + ", items=") + this.items) + ")");
}
}
private static final @java.lang.SuppressWarnings("all") class ParentBuilderImpl extends ParentBuilder<Parent, ParentBuilderImpl> {
private @java.lang.SuppressWarnings("all") ParentBuilderImpl() {
+ super();
}
protected @java.lang.Override @java.lang.SuppressWarnings("all") ParentBuilderImpl self() {
return this;
@@ -41,26 +42,27 @@ public class SuperBuilderBasic { return new Parent(this);
}
}
- public @java.lang.SuppressWarnings("all") static ParentBuilder<?, ?> builder() {
- return new ParentBuilderImpl();
- }
int field1;
@lombok.Singular List<String> items;
protected @java.lang.SuppressWarnings("all") Parent(final ParentBuilder<?, ?> b) {
+ super();
this.field1 = b.field1;
java.util.List<String> items;
- switch (b.items == null ? 0 : b.items.size()) {
- case 0:
- items = java.util.Collections.emptyList();
- break;
- case 1:
- items = java.util.Collections.singletonList(b.items.get(0));
- break;
- default:
- items = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(b.items));
+ switch (((b.items == null) ? 0 : b.items.size())) {
+ case 0 :
+ items = java.util.Collections.emptyList();
+ break;
+ case 1 :
+ items = java.util.Collections.singletonList(b.items.get(0));
+ break;
+ default :
+ items = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(b.items));
}
this.items = items;
}
+ public static @java.lang.SuppressWarnings("all") ParentBuilder<?, ?> builder() {
+ return new ParentBuilderImpl();
+ }
}
public static @lombok.experimental.SuperBuilder class Child extends Parent {
|