core: disable parenthesis remove (break code in most cases)

This commit is contained in:
Skylot
2014-10-25 22:36:21 +04:00
parent f31c2dcd21
commit 2b00a8a406
2 changed files with 2 additions and 4 deletions
@@ -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();