core: disable parenthesis remove (break code in most cases)
This commit is contained in:
@@ -32,7 +32,7 @@ public class PrepareForCodeGen extends AbstractVisitor {
|
|||||||
for (BlockNode block : blocks) {
|
for (BlockNode block : blocks) {
|
||||||
removeInstructions(block);
|
removeInstructions(block);
|
||||||
checkInline(block);
|
checkInline(block);
|
||||||
removeParenthesis(block);
|
// removeParenthesis(block);
|
||||||
modifyArith(block);
|
modifyArith(block);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ package jadx.tests.integration.arith;
|
|||||||
import jadx.core.dex.nodes.ClassNode;
|
import jadx.core.dex.nodes.ClassNode;
|
||||||
import jadx.tests.api.IntegrationTest;
|
import jadx.tests.api.IntegrationTest;
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import static org.hamcrest.CoreMatchers.containsString;
|
import static org.hamcrest.CoreMatchers.containsString;
|
||||||
import static org.hamcrest.CoreMatchers.not;
|
import static org.hamcrest.CoreMatchers.not;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.junit.Assert.assertThat;
|
||||||
@@ -22,7 +20,7 @@ public class TestArith2 extends IntegrationTest {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
public void test() {
|
public void test() {
|
||||||
ClassNode cls = getClassNode(TestCls.class);
|
ClassNode cls = getClassNode(TestCls.class);
|
||||||
String code = cls.getCode().toString();
|
String code = cls.getCode().toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user