From 0b789291e42706f8772eafcd2510233f22f6ad76 Mon Sep 17 00:00:00 2001 From: Jan Rieke Date: Fri, 27 Apr 2018 16:59:42 +0200 Subject: fixed generation problem caused by reusing expressions --- src/core/lombok/eclipse/handlers/HandleSuperBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/lombok/eclipse/handlers') 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 { // 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]; // are the generics for our builder. String classGenericName = "C"; -- cgit