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:
Agaricus 2013-01-26 00:05:22 -08:00
parent 25fcbb40fe
commit 89c00557a7

View File

@ -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;
}