diff --git a/src/main/java/org/openrewrite/staticanalysis/ExplicitLambdaArgumentTypes.java b/src/main/java/org/openrewrite/staticanalysis/ExplicitLambdaArgumentTypes.java index 84d1eb922..2d01e5b47 100755 --- a/src/main/java/org/openrewrite/staticanalysis/ExplicitLambdaArgumentTypes.java +++ b/src/main/java/org/openrewrite/staticanalysis/ExplicitLambdaArgumentTypes.java @@ -172,7 +172,8 @@ private J.VariableDeclarations maybeAddTypeExpression(J.VariableDeclarations mul } else if (type instanceof JavaType.GenericTypeVariable) { JavaType.GenericTypeVariable genericType = (JavaType.GenericTypeVariable) type; - if (!genericType.getName().equals("?")) { + if (!"?".equals(genericType.getName()) && + !"".equals(genericType.getName())) { return new J.Identifier(Tree.randomId(), space, Markers.EMPTY,