Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jadx
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
jadx
Commits
2b00a8a4
Commit
2b00a8a4
authored
Oct 25, 2014
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: disable parenthesis remove (break code in most cases)
parent
f31c2dcd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
PrepareForCodeGen.java
...c/main/java/jadx/core/dex/visitors/PrepareForCodeGen.java
+1
-1
TestArith2.java
...rc/test/java/jadx/tests/integration/arith/TestArith2.java
+1
-3
No files found.
jadx-core/src/main/java/jadx/core/dex/visitors/PrepareForCodeGen.java
View file @
2b00a8a4
...
...
@@ -32,7 +32,7 @@ public class PrepareForCodeGen extends AbstractVisitor {
for
(
BlockNode
block
:
blocks
)
{
removeInstructions
(
block
);
checkInline
(
block
);
removeParenthesis
(
block
);
//
removeParenthesis(block);
modifyArith
(
block
);
}
}
...
...
jadx-core/src/test/java/jadx/tests/integration/arith/TestArith2.java
View file @
2b00a8a4
...
...
@@ -3,8 +3,6 @@ package jadx.tests.integration.arith;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.tests.api.IntegrationTest
;
import
org.junit.Test
;
import
static
org
.
hamcrest
.
CoreMatchers
.
containsString
;
import
static
org
.
hamcrest
.
CoreMatchers
.
not
;
import
static
org
.
junit
.
Assert
.
assertThat
;
...
...
@@ -22,7 +20,7 @@ public class TestArith2 extends IntegrationTest {
}
}
@Test
//
@Test
public
void
test
()
{
ClassNode
cls
=
getClassNode
(
TestCls
.
class
);
String
code
=
cls
.
getCode
().
toString
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment