core: remove synthetic fields for inner classes
This commit is contained in:
@@ -27,7 +27,7 @@ public class TestInnerClass extends InternalJadxTest {
|
||||
assertThat(code, containsString("Inner {"));
|
||||
assertThat(code, containsString("Inner2 extends Thread {"));
|
||||
assertThat(code, not(containsString("super();")));
|
||||
// assertThat(code, not(containsString("this$0")));
|
||||
// assertThat(code, not(containsString("/* synthetic */")));
|
||||
assertThat(code, not(containsString("this$")));
|
||||
assertThat(code, not(containsString("/* synthetic */")));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@ package jadx.tests.internal;
|
||||
import jadx.api.InternalJadxTest;
|
||||
import jadx.core.dex.nodes.ClassNode;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.containsString;
|
||||
import static org.hamcrest.CoreMatchers.not;
|
||||
import static org.junit.Assert.assertThat;
|
||||
@@ -21,7 +23,7 @@ public class TestStringBuilderElimination extends InternalJadxTest {
|
||||
}
|
||||
}
|
||||
|
||||
// @Test
|
||||
@Test
|
||||
public void test() {
|
||||
ClassNode cls = getClassNode(MyException.class);
|
||||
String code = cls.getCode().toString();
|
||||
|
||||
Reference in New Issue
Block a user