Fix recent regression in remapping inner classes
Broken in refactor in 3ff134311d
The outer class name (before '$') should be used for mapClassName.
This commit is contained in:
parent
25fcbb40fe
commit
89c00557a7
@ -63,7 +63,7 @@ public class JarRemapper extends Remapper {
|
||||
public static String mapTypeName(String typeName, Map<String, String> packageMap, Map<String, String> classMap) {
|
||||
int index = typeName.indexOf('$');
|
||||
String key = (index == -1) ? typeName : typeName.substring(0, index);
|
||||
String mapped = mapClassName(typeName, packageMap, classMap);
|
||||
String mapped = mapClassName(key, packageMap, classMap);
|
||||
|
||||
return mapped != null ? mapped + (index == -1 ? "" : typeName.substring(index, typeName.length())) : typeName;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user