fixed cast to parametrized type

This commit is contained in:
Egor.Ushakov
2015-07-15 21:11:44 +03:00
parent 2b80a3f01b
commit a2c3ebddea
@@ -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('$', '.'));
}