Fixed some bugs

This commit is contained in:
SuspiciousActivity committed 2019-10-10 17:13:48 +02:00
1 parent 46cd6de355
commit 5a077134a5
2 files changed
+14 -5

No files matched your search

+12 -3
View File
@@ -110,11 +110,20 @@ public class MappingReader {
}
private String getOldClassName(String name) {
int arrayCount = 0;
int arrayIdx = name.lastIndexOf('[');
while (arrayIdx >= 0) {
arrayCount++;
name = name.substring(0, arrayIdx);
arrayIdx = name.lastIndexOf('[');
}
name = name.replace('.', '/');
String old = internalReversedClassMappings.get(name);
if (old != null)
return old;
return name;
if (old == null)
old = name;
for (int i = 0; i < arrayCount; i++)
old += "[]";
return old;
}
private String convertTypeToByteCode(String type) {