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
d0aa1911
Commit
d0aa1911
authored
Mar 25, 2014
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix comodification exception
parent
039f6eeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ClassModifier.java
...e/src/main/java/jadx/core/dex/visitors/ClassModifier.java
+2
-6
No files found.
jadx-core/src/main/java/jadx/core/dex/visitors/ClassModifier.java
View file @
d0aa1911
...
...
@@ -21,7 +21,6 @@ import jadx.core.dex.nodes.MethodNode;
import
jadx.core.utils.InstructionRemover
;
import
jadx.core.utils.exceptions.JadxException
;
import
java.util.Iterator
;
import
java.util.List
;
public
class
ClassModifier
extends
AbstractVisitor
{
...
...
@@ -114,16 +113,13 @@ public class ClassModifier extends AbstractVisitor {
}
private
static
void
removeSyntheticMethods
(
ClassNode
cls
)
{
for
(
Iterator
<
MethodNode
>
it
=
cls
.
getMethods
().
iterator
();
it
.
hasNext
();
)
{
MethodNode
mth
=
it
.
next
();
for
(
MethodNode
mth
:
cls
.
getMethods
())
{
AccessInfo
af
=
mth
.
getAccessFlags
();
// remove bridge methods
if
(
af
.
isBridge
()
&&
af
.
isSynthetic
()
&&
!
isMethodUniq
(
cls
,
mth
))
{
// TODO add more checks before method deletion
it
.
remove
(
);
mth
.
getAttributes
().
add
(
AttributeFlag
.
DONT_GENERATE
);
}
// remove synthetic constructor for inner non-static classes
if
(
af
.
isSynthetic
()
&&
af
.
isConstructor
()
&&
mth
.
getBasicBlocks
().
size
()
==
2
)
{
List
<
InsnNode
>
insns
=
mth
.
getBasicBlocks
().
get
(
0
).
getInstructions
();
...
...
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