aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2018-04-27 16:59:42 +0200
committerJan Rieke <rieke@subshell.com>2018-04-27 16:59:42 +0200
commit0b789291e42706f8772eafcd2510233f22f6ad76 (patch)
tree3dbe555b06f391448a2534662a0395b0117d9b17 /src/core/lombok/eclipse/handlers
parent9f3e8509f7564b82eb13d3e4d7d0fc22a6d13cc3 (diff)
downloadlombok-0b789291e42706f8772eafcd2510233f22f6ad76.tar.gz
lombok-0b789291e42706f8772eafcd2510233f22f6ad76.tar.bz2
lombok-0b789291e42706f8772eafcd2510233f22f6ad76.zip
fixed generation problem caused by reusing expressions
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSuperBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
index cf2e0fbb..7e6daa17 100644
--- a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
@@ -225,7 +225,7 @@ public class HandleSuperBuilder extends EclipseAnnotationHandler<SuperBuilder> {
// You can use it to check whether to inherit or not.
returnType = namePlusTypeParamsToTypeReference(td.name, td.typeParameters, p);
- typeParams = td.typeParameters;
+ typeParams = td.typeParameters != null ? td.typeParameters : new TypeParameter[0];
// <C, B> are the generics for our builder.
String classGenericName = "C";