|
|
@ -130,6 +130,20 @@ class TypedRemapper private constructor( |
|
|
|
return mappedName |
|
|
|
return mappedName |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun isClassRenamable(clazz: ClassMetadata): Boolean { |
|
|
|
|
|
|
|
if (clazz.name in EXCLUDED_CLASSES || clazz.dependency) { |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (method in clazz.methods) { |
|
|
|
|
|
|
|
if (clazz.getAccess(method)!! and Opcodes.ACC_NATIVE != 0) { |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun createFieldMapping( |
|
|
|
private fun createFieldMapping( |
|
|
|
classPath: ClassPath, |
|
|
|
classPath: ClassPath, |
|
|
|
disjointSet: DisjointSet<MemberRef>, |
|
|
|
disjointSet: DisjointSet<MemberRef>, |
|
|
@ -186,20 +200,6 @@ class TypedRemapper private constructor( |
|
|
|
return true |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun isClassRenamable(clazz: ClassMetadata): Boolean { |
|
|
|
|
|
|
|
if (clazz.name in EXCLUDED_CLASSES || clazz.dependency) { |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (method in clazz.methods) { |
|
|
|
|
|
|
|
if (clazz.getAccess(method)!! and Opcodes.ACC_NATIVE != 0) { |
|
|
|
|
|
|
|
return false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun isMethodRenamable(classPath: ClassPath, partition: DisjointSet.Partition<MemberRef>): Boolean { |
|
|
|
fun isMethodRenamable(classPath: ClassPath, partition: DisjointSet.Partition<MemberRef>): Boolean { |
|
|
|
for (method in partition) { |
|
|
|
for (method in partition) { |
|
|
|
val clazz = classPath[method.owner]!! |
|
|
|
val clazz = classPath[method.owner]!! |
|
|
|