Skip to content

Commit e766f1b

Browse files
recursively replace types
1 parent 0f5ef39 commit e766f1b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/anthonisen/felix/astParsing/util/TypeReplacer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public static boolean replaceTypes(Type type, String targetTypeName, String newT
1515
classType.setName(newTypeName);
1616
}
1717

18-
// if (classType.getTypeArguments().isPresent()) {
19-
// for (Type arg : classType.getTypeArguments().get()) {
20-
// found = replaceTypes(arg, targetTypeName, newTypeName) || found;
21-
// }
22-
// }
18+
if (classType.getTypeArguments().isPresent()) {
19+
for (Type arg : classType.getTypeArguments().get()) {
20+
found = replaceTypes(arg, targetTypeName, newTypeName) || found;
21+
}
22+
}
2323
}
2424
return found;
2525
}

0 commit comments

Comments
 (0)