mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed cast to parametrized type
This commit is contained in:
@@ -279,6 +279,10 @@ public abstract class DebuggerUtils {
|
||||
}
|
||||
|
||||
private static boolean typeEquals(Type type, String typeName) {
|
||||
int genericPos = typeName.indexOf('<');
|
||||
if (genericPos > -1) {
|
||||
typeName = typeName.substring(0, genericPos);
|
||||
}
|
||||
return type.name().replace('$', '.').equals(typeName.replace('$', '.'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user