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
039f6eeb
Commit
039f6eeb
authored
Mar 25, 2014
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: rename depth traversal class
parent
8a464e82
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
ProcessClass.java
jadx-core/src/main/java/jadx/core/ProcessClass.java
+2
-2
MethodGen.java
jadx-core/src/main/java/jadx/core/codegen/MethodGen.java
+2
-2
DepthTraversal.java
.../src/main/java/jadx/core/dex/visitors/DepthTraversal.java
+1
-1
InternalJadxTest.java
jadx-core/src/test/java/jadx/api/InternalJadxTest.java
+2
-2
TestVariablesDefinitions.java
...st/java/jadx/tests/internal/TestVariablesDefinitions.java
+2
-2
No files found.
jadx-core/src/main/java/jadx/core/ProcessClass.java
View file @
039f6eeb
package
jadx
.
core
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.utils.exceptions.DecodeException
;
...
...
@@ -20,7 +20,7 @@ public final class ProcessClass {
try
{
cls
.
load
();
for
(
IDexTreeVisitor
visitor
:
passes
)
{
DepthTravers
er
.
visit
(
visitor
,
cls
);
DepthTravers
al
.
visit
(
visitor
,
cls
);
}
}
catch
(
DecodeException
e
)
{
LOG
.
error
(
"Decode exception: "
+
cls
,
e
);
...
...
jadx-core/src/main/java/jadx/core/codegen/MethodGen.java
View file @
039f6eeb
...
...
@@ -14,7 +14,7 @@ import jadx.core.dex.nodes.InsnNode;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.dex.regions.Region
;
import
jadx.core.dex.trycatch.CatchAttr
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.FallbackModeVisitor
;
import
jadx.core.utils.ErrorsCounter
;
import
jadx.core.utils.InsnUtils
;
...
...
@@ -274,7 +274,7 @@ public class MethodGen {
// load original instructions
try
{
mth
.
load
();
DepthTravers
er
.
visit
(
new
FallbackModeVisitor
(),
mth
);
DepthTravers
al
.
visit
(
new
FallbackModeVisitor
(),
mth
);
}
catch
(
DecodeException
e
)
{
LOG
.
error
(
"Error reload instructions in fallback mode:"
,
e
);
code
.
startLine
(
"// Can't loadFile method instructions: "
+
e
.
getMessage
());
...
...
jadx-core/src/main/java/jadx/core/dex/visitors/DepthTravers
er
.java
→
jadx-core/src/main/java/jadx/core/dex/visitors/DepthTravers
al
.java
View file @
039f6eeb
...
...
@@ -4,7 +4,7 @@ import jadx.core.dex.nodes.ClassNode;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.utils.ErrorsCounter
;
public
class
DepthTravers
er
{
public
class
DepthTravers
al
{
public
static
void
visit
(
IDexTreeVisitor
visitor
,
ClassNode
cls
)
{
try
{
...
...
jadx-core/src/test/java/jadx/api/InternalJadxTest.java
View file @
039f6eeb
...
...
@@ -3,7 +3,7 @@ package jadx.api;
import
jadx.core.Jadx
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.nodes.MethodNode
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
java.io.BufferedInputStream
;
...
...
@@ -66,7 +66,7 @@ public abstract class InternalJadxTest extends TestUtils {
}
},
new
File
(
outDir
));
for
(
IDexTreeVisitor
visitor
:
passes
)
{
DepthTravers
er
.
visit
(
visitor
,
cls
);
DepthTravers
al
.
visit
(
visitor
,
cls
);
}
assertThat
(
cls
.
getCode
().
toString
(),
not
(
containsString
(
"inconsistent"
)));
return
cls
;
...
...
jadx-core/src/test/java/jadx/tests/internal/TestVariablesDefinitions.java
View file @
039f6eeb
...
...
@@ -2,7 +2,7 @@ package jadx.tests.internal;
import
jadx.api.InternalJadxTest
;
import
jadx.core.dex.nodes.ClassNode
;
import
jadx.core.dex.visitors.DepthTravers
er
;
import
jadx.core.dex.visitors.DepthTravers
al
;
import
jadx.core.dex.visitors.IDexTreeVisitor
;
import
jadx.core.utils.exceptions.DecodeException
;
...
...
@@ -28,7 +28,7 @@ public class TestVariablesDefinitions extends InternalJadxTest {
cls
.
load
();
Iterator
<
IDexTreeVisitor
>
iterator
=
passes
.
iterator
();
while
(
iterator
.
hasNext
())
{
DepthTravers
er
.
visit
(
iterator
.
next
(),
cls
);
DepthTravers
al
.
visit
(
iterator
.
next
(),
cls
);
}
}
catch
(
DecodeException
e
)
{
LOG
.
error
(
"Decode exception: "
+
cls
,
e
);
...
...
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