aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-09-04 01:53:30 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-09-04 01:54:29 +0200
commitaf55bd0a328aa05f3ffb53a57a37306d1372a478 (patch)
treea2309f191d4041d0e14e4632e2103f47d3e3f84d /src/core/lombok/javac
parent92bc41ae6dce8e16fd9da64c08ad085822fd33ed (diff)
downloadlombok-af55bd0a328aa05f3ffb53a57a37306d1372a478.tar.gz
lombok-af55bd0a328aa05f3ffb53a57a37306d1372a478.tar.bz2
lombok-af55bd0a328aa05f3ffb53a57a37306d1372a478.zip
[wip] Random fixes to various tests that are failing, especially against Java7.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/handlers/HandleBuilder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/HandleBuilder.java b/src/core/lombok/javac/handlers/HandleBuilder.java
index 63697691..1a471029 100644
--- a/src/core/lombok/javac/handlers/HandleBuilder.java
+++ b/src/core/lombok/javac/handlers/HandleBuilder.java
@@ -516,7 +516,8 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> {
arg = tgt[0];
} else {
JCExpression eqNull = maker.Binary(CTC_EQUAL, tgt[0], maker.Literal(CTC_BOT, null));
- JCExpression emptyList = maker.Apply(List.<JCExpression>nil(), chainDots(type, "java", "util", "Collections", "emptyList"), List.<JCExpression>nil());
+ List<JCExpression> tas = cloneTypes(maker, bfd.singularData.getTypeArgs(), ast, type.getContext());
+ JCExpression emptyList = maker.Apply(tas, chainDots(type, "java", "util", "Collections", "emptyList"), List.<JCExpression>nil());
arg = maker.Conditional(eqNull, emptyList, tgt[1]);
}