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
76a0608a
Commit
76a0608a
authored
Aug 29, 2015
by
skylot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #83 from vbauer/fix-warnings
Fix console warnings during compilation (gradle build)
parents
ffb97880
0d93d335
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
13 deletions
+14
-13
IntegrationTest.java
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
+1
-1
ClassFileManager.java
...c/test/java/jadx/tests/api/compiler/ClassFileManager.java
+2
-2
DynamicCompiler.java
...rc/test/java/jadx/tests/api/compiler/DynamicCompiler.java
+2
-2
JadxVisitorsOrderTest.java
...est/java/jadx/tests/functional/JadxVisitorsOrderTest.java
+1
-1
TestIssue13a.java
...test/java/jadx/tests/integration/others/TestIssue13a.java
+6
-6
JRoot.java
jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java
+1
-1
LogViewer.java
jadx-gui/src/main/java/jadx/gui/ui/LogViewer.java
+1
-0
No files found.
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
View file @
76a0608a
...
...
@@ -247,7 +247,7 @@ public abstract class IntegrationTest extends TestUtils {
}
public
Object
invoke
(
String
method
)
throws
Exception
{
return
invoke
(
method
,
new
Class
[
0
]);
return
invoke
(
method
,
new
Class
<?>
[
0
]);
}
public
Object
invoke
(
String
method
,
Class
[]
types
,
Object
...
args
)
throws
Exception
{
...
...
jadx-core/src/test/java/jadx/tests/api/compiler/ClassFileManager.java
View file @
76a0608a
...
...
@@ -35,7 +35,7 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
private
class
DynamicClassLoader
extends
SecureClassLoader
{
private
final
Map
<
String
,
JavaClassObject
>
clsMap
=
new
HashMap
<
String
,
JavaClassObject
>();
private
final
Map
<
String
,
Class
>
clsCache
=
new
HashMap
<
String
,
Class
>();
private
final
Map
<
String
,
Class
<?>>
clsCache
=
new
HashMap
<
String
,
Class
<?>
>();
@Override
protected
Class
<?>
findClass
(
String
name
)
throws
ClassNotFoundException
{
...
...
@@ -55,7 +55,7 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
}
public
Class
<?>
replaceClass
(
String
name
)
throws
ClassNotFoundException
{
Class
cacheCls
=
clsCache
.
get
(
name
);
Class
<?>
cacheCls
=
clsCache
.
get
(
name
);
if
(
cacheCls
!=
null
)
{
return
cacheCls
;
}
...
...
jadx-core/src/test/java/jadx/tests/api/compiler/DynamicCompiler.java
View file @
76a0608a
...
...
@@ -58,7 +58,7 @@ public class DynamicCompiler {
}
public
Method
getMethod
(
String
method
,
Class
[]
types
)
throws
Exception
{
for
(
Class
type
:
types
)
{
for
(
Class
<?>
type
:
types
)
{
checkType
(
type
);
}
return
getInstance
().
getClass
().
getMethod
(
method
,
types
);
...
...
@@ -68,7 +68,7 @@ public class DynamicCompiler {
return
mth
.
invoke
(
getInstance
(),
args
);
}
private
Class
<?>
checkType
(
Class
type
)
throws
ClassNotFoundException
{
private
Class
<?>
checkType
(
Class
<?>
type
)
throws
ClassNotFoundException
{
if
(
type
.
isPrimitive
())
{
return
type
;
}
...
...
jadx-core/src/test/java/jadx/tests/functional/JadxVisitorsOrderTest.java
View file @
76a0608a
...
...
@@ -34,7 +34,7 @@ public class JadxVisitorsOrderTest {
}
private
static
List
<
String
>
check
(
List
<
IDexTreeVisitor
>
passes
)
{
List
<
Class
>
classList
=
new
ArrayList
<
Class
>(
passes
.
size
());
List
<
Class
<?>>
classList
=
new
ArrayList
<
Class
<?>
>(
passes
.
size
());
for
(
IDexTreeVisitor
pass
:
passes
)
{
classList
.
add
(
pass
.
getClass
());
}
...
...
jadx-core/src/test/java/jadx/tests/integration/others/TestIssue13a.java
View file @
76a0608a
...
...
@@ -15,8 +15,8 @@ public class TestIssue13a extends IntegrationTest {
public
static
class
TestCls
{
private
static
final
String
TAG
=
"Parcel"
;
private
static
final
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
>>
mCreators
=
new
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
>>();
private
static
final
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
<?>
>>
mCreators
=
new
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
<?>
>>();
@SuppressWarnings
(
"unchecked"
)
public
final
<
T
extends
Parcelable
>
T
test
(
ClassLoader
loader
)
{
...
...
@@ -26,15 +26,15 @@ public class TestIssue13a extends IntegrationTest {
}
Parcelable
.
Creator
<
T
>
creator
;
synchronized
(
mCreators
)
{
HashMap
<
String
,
Parcelable
.
Creator
>
map
=
mCreators
.
get
(
loader
);
HashMap
<
String
,
Parcelable
.
Creator
<?>
>
map
=
mCreators
.
get
(
loader
);
if
(
map
==
null
)
{
map
=
new
HashMap
<
String
,
Parcelable
.
Creator
>();
map
=
new
HashMap
<
String
,
Parcelable
.
Creator
<?>
>();
mCreators
.
put
(
loader
,
map
);
}
creator
=
map
.
get
(
name
);
creator
=
(
Parcelable
.
Creator
<
T
>)
map
.
get
(
name
);
if
(
creator
==
null
)
{
try
{
Class
c
=
loader
==
null
?
Class
<?>
c
=
loader
==
null
?
Class
.
forName
(
name
)
:
Class
.
forName
(
name
,
true
,
loader
);
Field
f
=
c
.
getField
(
"CREATOR"
);
creator
=
(
Parcelable
.
Creator
)
f
.
get
(
null
);
...
...
jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java
View file @
76a0608a
...
...
@@ -71,7 +71,7 @@ public class JRoot extends JNode {
}
public
JNode
searchClassInTree
(
JNode
node
)
{
Enumeration
en
=
this
.
breadthFirstEnumeration
();
Enumeration
<?>
en
=
this
.
breadthFirstEnumeration
();
while
(
en
.
hasMoreElements
())
{
Object
obj
=
en
.
nextElement
();
if
(
node
.
equals
(
obj
))
{
...
...
jadx-gui/src/main/java/jadx/gui/ui/LogViewer.java
View file @
76a0608a
...
...
@@ -41,6 +41,7 @@ class LogViewer extends JDialog {
JPanel
controlPane
=
new
JPanel
();
controlPane
.
setBorder
(
BorderFactory
.
createEmptyBorder
(
5
,
5
,
5
,
5
));
@SuppressWarnings
(
"unchecked"
)
final
JComboBox
cb
=
new
JComboBox
(
LEVEL_ITEMS
);
cb
.
setSelectedItem
(
level
);
cb
.
addActionListener
(
new
ActionListener
()
{
...
...
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