Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
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
d6a468f0
Commit
d6a468f0
authored
Jun 17, 2013
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show not important warnings
parent
69eb57cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
ClassNode.java
src/main/java/jadx/dex/nodes/ClassNode.java
+1
-1
CheckRegions.java
src/main/java/jadx/dex/visitors/regions/CheckRegions.java
+14
-2
No files found.
src/main/java/jadx/dex/nodes/ClassNode.java
View file @
d6a468f0
...
...
@@ -91,7 +91,7 @@ public class ClassNode extends AttrNode implements ILoadable {
String
fileName
=
dex
.
getString
(
sfIdx
);
if
(!
this
.
getFullName
().
contains
(
fileName
.
replace
(
".java"
,
""
)))
{
this
.
getAttributes
().
add
(
new
SourceFileAttr
(
fileName
));
LOG
.
info
(
"TODO: move class {} to {} file
"
,
this
,
fileName
);
LOG
.
debug
(
"Class '{}' compiled from '{}'
"
,
this
,
fileName
);
}
}
...
...
src/main/java/jadx/dex/visitors/regions/CheckRegions.java
View file @
d6a468f0
package
jadx
.
dex
.
visitors
.
regions
;
import
jadx.Consts
;
import
jadx.dex.attributes.AttributeFlag
;
import
jadx.dex.nodes.BlockNode
;
import
jadx.dex.nodes.IBlock
;
...
...
@@ -37,8 +38,19 @@ public class CheckRegions extends AbstractVisitor {
};
DepthRegionTraverser
.
traverseAll
(
mth
,
collectBlocks
);
if
(
mth
.
getBasicBlocks
().
size
()
!=
blocksInRegions
.
size
())
if
(
mth
.
getBasicBlocks
().
size
()
!=
blocksInRegions
.
size
())
{
for
(
BlockNode
block
:
mth
.
getBasicBlocks
())
{
if
(!
blocksInRegions
.
contains
(
block
))
{
if
(!
block
.
getInstructions
().
isEmpty
())
{
mth
.
getAttributes
().
add
(
AttributeFlag
.
INCONSISTENT_CODE
);
if
(
Consts
.
DEBUG
)
LOG
.
debug
(
"Missing block: {} in {}"
,
block
,
mth
);
else
break
;
}
}
}
}
// check loop conditions
IRegionVisitor
checkLoops
=
new
AbstractRegionVisitor
()
{
...
...
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