Commit 5b712e8d authored by Skylot's avatar Skylot

core: fix inline of anonymous obfuscated class (#122)

parent 5d7f2c70
......@@ -67,9 +67,7 @@ public class ClassModifier extends AbstractVisitor {
ClassInfo clsInfo = ClassInfo.fromType(cls.root(), field.getType());
ClassNode fieldsCls = cls.dex().resolveClass(clsInfo);
ClassInfo parentClass = cls.getClassInfo().getParentClass();
if (fieldsCls != null
&& parentClass.equals(fieldsCls.getClassInfo())
&& field.getName().startsWith("this$") /* TODO: don't check name */) {
if (fieldsCls != null && parentClass.equals(fieldsCls.getClassInfo())) {
int found = 0;
for (MethodNode mth : cls.getMethods()) {
if (removeFieldUsageFromConstructor(mth, field, fieldsCls)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment