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
76feab3f
Commit
76feab3f
authored
Apr 18, 2013
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't remove constructor with super call
parent
550659d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
ClassModifier.java
src/main/java/jadx/dex/visitors/ClassModifier.java
+2
-1
TestInner.java
src/samples/java/jadx/samples/TestInner.java
+11
-2
No files found.
src/main/java/jadx/dex/visitors/ClassModifier.java
View file @
76feab3f
...
...
@@ -36,6 +36,7 @@ public class ClassModifier extends AbstractVisitor {
&&
mth
.
getArguments
(
false
).
isEmpty
())
{
List
<
BlockNode
>
bb
=
mth
.
getBasicBlocks
();
if
(
bb
.
isEmpty
()
||
(
bb
.
size
()
==
1
&&
bb
.
get
(
0
).
getInstructions
().
isEmpty
()))
{
if
(
mth
.
getSuperCall
()
==
null
)
it
.
remove
();
}
}
...
...
src/samples/java/jadx/samples/TestInner.java
View file @
76feab3f
...
...
@@ -5,6 +5,11 @@ public class TestInner extends AbstractTest {
public
static
int
count
=
-
2
;
public
static
class
MyThread
extends
Thread
{
public
MyThread
(
String
name
)
{
super
(
name
);
}
@Override
public
void
run
()
{
count
++;
...
...
@@ -12,7 +17,7 @@ public class TestInner extends AbstractTest {
}
}
public
static
class
MyInceptionThread
extends
Thread
{
public
static
class
MyInceptionThread
extends
My
Thread
{
public
static
class
MyThread2
extends
Thread
{
@Override
...
...
@@ -21,6 +26,10 @@ public class TestInner extends AbstractTest {
}
}
public
MyInceptionThread
()
{
super
(
"MyInceptionThread"
);
}
@Override
public
void
run
()
{
MyThread2
thr
=
new
MyThread2
();
...
...
@@ -62,7 +71,7 @@ public class TestInner extends AbstractTest {
};
myRunnable
.
run
();
MyThread
thread
=
new
TestInner
.
MyThread
();
MyThread
thread
=
new
TestInner
.
MyThread
(
"my thread"
);
thread
.
start
();
MyInceptionThread
thread2
=
new
TestInner
.
MyInceptionThread
();
...
...
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