aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-13 04:53:44 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-03-13 04:53:44 +0100
commite8cd744d3b2d986dd847b9ff6bdf2750a8dd6764 (patch)
tree6e7e21207fb5475534d10234617dca1e071f9fd5 /test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java
parentc1bf4ec3b66cf6632cfd3e554d59ad4f8ad1b3b8 (diff)
downloadlombok-e8cd744d3b2d986dd847b9ff6bdf2750a8dd6764.tar.gz
lombok-e8cd744d3b2d986dd847b9ff6bdf2750a8dd6764.tar.bz2
lombok-e8cd744d3b2d986dd847b9ff6bdf2750a8dd6764.zip
[superbuilder] toBuilder + singular + javac6 was broken
superbuilder generated the node `x.pluralName(plural == null ? Collections.emptyList() : plural)`. java6 is not smart enough to infer the appropriate generics for the emptyList() call. Fixed by always specifying the needed type explicitly: Collections.<String>emptyList();
Diffstat (limited to 'test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java')
-rw-r--r--test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java b/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java
index 38a0a55b..3a1278c1 100644
--- a/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java
+++ b/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java
@@ -19,7 +19,7 @@ public class SuperBuilderWithSetterPrefix {
b.withObtainViaField(instance.field1);
b.withObtainViaMethod(instance.method());
b.withObtainViaStaticMethod(SuperBuilderWithSetterPrefix.Parent.staticMethod(instance));
- b.withItems(((instance.items == null) ? java.util.Collections.emptyList() : instance.items));
+ b.withItems(((instance.items == null) ? java.util.Collections.<String>emptyList() : instance.items));
}
protected abstract @java.lang.SuppressWarnings("all") B self();
public abstract @java.lang.SuppressWarnings("all") C build();