|
|
@ -16,6 +16,7 @@ import org.objectweb.asm.tree.MethodNode |
|
|
|
class StaticFieldUnscrambler( |
|
|
|
class StaticFieldUnscrambler( |
|
|
|
private val classPath: ClassPath, |
|
|
|
private val classPath: ClassPath, |
|
|
|
private val excludedFields: MemberFilter, |
|
|
|
private val excludedFields: MemberFilter, |
|
|
|
|
|
|
|
private val scrambledLibraries: Set<String>, |
|
|
|
private val nameMap: NameMap, |
|
|
|
private val nameMap: NameMap, |
|
|
|
private val inheritedFieldSets: DisjointSet<MemberRef>, |
|
|
|
private val inheritedFieldSets: DisjointSet<MemberRef>, |
|
|
|
staticClassNameGenerator: NameGenerator |
|
|
|
staticClassNameGenerator: NameGenerator |
|
|
@ -26,8 +27,7 @@ class StaticFieldUnscrambler( |
|
|
|
val fields = mutableMapOf<DisjointSet.Partition<MemberRef>, StaticField>() |
|
|
|
val fields = mutableMapOf<DisjointSet.Partition<MemberRef>, StaticField>() |
|
|
|
|
|
|
|
|
|
|
|
for (library in classPath.libraries) { |
|
|
|
for (library in classPath.libraries) { |
|
|
|
if ("client" !in library) { |
|
|
|
if (library.name !in scrambledLibraries) { |
|
|
|
// TODO(gpe): improve detection of the client library |
|
|
|
|
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|