Skip to content

Commit

Permalink
Work around upstream change to how generics are passed down
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Aug 21, 2024
1 parent 5aaf59f commit 3a5399e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) &&
!"<captured wildcard>".equals(genericType.getName())) {
return new J.Identifier(Tree.randomId(),
space,
Markers.EMPTY,
Expand Down

0 comments on commit 3a5399e

Please sign in to comment.