Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colcode
jadx
提交
76a0608a
J
jadx
项目概览
colcode
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jadx
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
76a0608a
编写于
8月 29, 2015
作者:
S
skylot
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #83 from vbauer/fix-warnings
Fix console warnings during compilation (gradle build)
上级
ffb97880
0d93d335
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
14 addition
and
13 deletion
+14
-13
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
+1
-1
jadx-core/src/test/java/jadx/tests/api/compiler/ClassFileManager.java
...c/test/java/jadx/tests/api/compiler/ClassFileManager.java
+2
-2
jadx-core/src/test/java/jadx/tests/api/compiler/DynamicCompiler.java
...rc/test/java/jadx/tests/api/compiler/DynamicCompiler.java
+2
-2
jadx-core/src/test/java/jadx/tests/functional/JadxVisitorsOrderTest.java
...est/java/jadx/tests/functional/JadxVisitorsOrderTest.java
+1
-1
jadx-core/src/test/java/jadx/tests/integration/others/TestIssue13a.java
...test/java/jadx/tests/integration/others/TestIssue13a.java
+6
-6
jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java
jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java
+1
-1
jadx-gui/src/main/java/jadx/gui/ui/LogViewer.java
jadx-gui/src/main/java/jadx/gui/ui/LogViewer.java
+1
-0
未找到文件。
jadx-core/src/test/java/jadx/tests/api/IntegrationTest.java
浏览文件 @
76a0608a
...
@@ -247,7 +247,7 @@ public abstract class IntegrationTest extends TestUtils {
...
@@ -247,7 +247,7 @@ public abstract class IntegrationTest extends TestUtils {
}
}
public
Object
invoke
(
String
method
)
throws
Exception
{
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
{
public
Object
invoke
(
String
method
,
Class
[]
types
,
Object
...
args
)
throws
Exception
{
...
...
jadx-core/src/test/java/jadx/tests/api/compiler/ClassFileManager.java
浏览文件 @
76a0608a
...
@@ -35,7 +35,7 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
...
@@ -35,7 +35,7 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
private
class
DynamicClassLoader
extends
SecureClassLoader
{
private
class
DynamicClassLoader
extends
SecureClassLoader
{
private
final
Map
<
String
,
JavaClassObject
>
clsMap
=
new
HashMap
<
String
,
JavaClassObject
>();
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
@Override
protected
Class
<?>
findClass
(
String
name
)
throws
ClassNotFoundException
{
protected
Class
<?>
findClass
(
String
name
)
throws
ClassNotFoundException
{
...
@@ -55,7 +55,7 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
...
@@ -55,7 +55,7 @@ public class ClassFileManager extends ForwardingJavaFileManager<StandardJavaFile
}
}
public
Class
<?>
replaceClass
(
String
name
)
throws
ClassNotFoundException
{
public
Class
<?>
replaceClass
(
String
name
)
throws
ClassNotFoundException
{
Class
cacheCls
=
clsCache
.
get
(
name
);
Class
<?>
cacheCls
=
clsCache
.
get
(
name
);
if
(
cacheCls
!=
null
)
{
if
(
cacheCls
!=
null
)
{
return
cacheCls
;
return
cacheCls
;
}
}
...
...
jadx-core/src/test/java/jadx/tests/api/compiler/DynamicCompiler.java
浏览文件 @
76a0608a
...
@@ -58,7 +58,7 @@ public class DynamicCompiler {
...
@@ -58,7 +58,7 @@ public class DynamicCompiler {
}
}
public
Method
getMethod
(
String
method
,
Class
[]
types
)
throws
Exception
{
public
Method
getMethod
(
String
method
,
Class
[]
types
)
throws
Exception
{
for
(
Class
type
:
types
)
{
for
(
Class
<?>
type
:
types
)
{
checkType
(
type
);
checkType
(
type
);
}
}
return
getInstance
().
getClass
().
getMethod
(
method
,
types
);
return
getInstance
().
getClass
().
getMethod
(
method
,
types
);
...
@@ -68,7 +68,7 @@ public class DynamicCompiler {
...
@@ -68,7 +68,7 @@ public class DynamicCompiler {
return
mth
.
invoke
(
getInstance
(),
args
);
return
mth
.
invoke
(
getInstance
(),
args
);
}
}
private
Class
<?>
checkType
(
Class
type
)
throws
ClassNotFoundException
{
private
Class
<?>
checkType
(
Class
<?>
type
)
throws
ClassNotFoundException
{
if
(
type
.
isPrimitive
())
{
if
(
type
.
isPrimitive
())
{
return
type
;
return
type
;
}
}
...
...
jadx-core/src/test/java/jadx/tests/functional/JadxVisitorsOrderTest.java
浏览文件 @
76a0608a
...
@@ -34,7 +34,7 @@ public class JadxVisitorsOrderTest {
...
@@ -34,7 +34,7 @@ public class JadxVisitorsOrderTest {
}
}
private
static
List
<
String
>
check
(
List
<
IDexTreeVisitor
>
passes
)
{
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
)
{
for
(
IDexTreeVisitor
pass
:
passes
)
{
classList
.
add
(
pass
.
getClass
());
classList
.
add
(
pass
.
getClass
());
}
}
...
...
jadx-core/src/test/java/jadx/tests/integration/others/TestIssue13a.java
浏览文件 @
76a0608a
...
@@ -15,8 +15,8 @@ public class TestIssue13a extends IntegrationTest {
...
@@ -15,8 +15,8 @@ public class TestIssue13a extends IntegrationTest {
public
static
class
TestCls
{
public
static
class
TestCls
{
private
static
final
String
TAG
=
"Parcel"
;
private
static
final
String
TAG
=
"Parcel"
;
private
static
final
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
>>
private
static
final
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
<?>
>>
mCreators
=
new
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
>>();
mCreators
=
new
HashMap
<
ClassLoader
,
HashMap
<
String
,
Parcelable
.
Creator
<?>
>>();
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
public
final
<
T
extends
Parcelable
>
T
test
(
ClassLoader
loader
)
{
public
final
<
T
extends
Parcelable
>
T
test
(
ClassLoader
loader
)
{
...
@@ -26,15 +26,15 @@ public class TestIssue13a extends IntegrationTest {
...
@@ -26,15 +26,15 @@ public class TestIssue13a extends IntegrationTest {
}
}
Parcelable
.
Creator
<
T
>
creator
;
Parcelable
.
Creator
<
T
>
creator
;
synchronized
(
mCreators
)
{
synchronized
(
mCreators
)
{
HashMap
<
String
,
Parcelable
.
Creator
>
map
=
mCreators
.
get
(
loader
);
HashMap
<
String
,
Parcelable
.
Creator
<?>
>
map
=
mCreators
.
get
(
loader
);
if
(
map
==
null
)
{
if
(
map
==
null
)
{
map
=
new
HashMap
<
String
,
Parcelable
.
Creator
>();
map
=
new
HashMap
<
String
,
Parcelable
.
Creator
<?>
>();
mCreators
.
put
(
loader
,
map
);
mCreators
.
put
(
loader
,
map
);
}
}
creator
=
map
.
get
(
name
);
creator
=
(
Parcelable
.
Creator
<
T
>)
map
.
get
(
name
);
if
(
creator
==
null
)
{
if
(
creator
==
null
)
{
try
{
try
{
Class
c
=
loader
==
null
?
Class
<?>
c
=
loader
==
null
?
Class
.
forName
(
name
)
:
Class
.
forName
(
name
,
true
,
loader
);
Class
.
forName
(
name
)
:
Class
.
forName
(
name
,
true
,
loader
);
Field
f
=
c
.
getField
(
"CREATOR"
);
Field
f
=
c
.
getField
(
"CREATOR"
);
creator
=
(
Parcelable
.
Creator
)
f
.
get
(
null
);
creator
=
(
Parcelable
.
Creator
)
f
.
get
(
null
);
...
...
jadx-gui/src/main/java/jadx/gui/treemodel/JRoot.java
浏览文件 @
76a0608a
...
@@ -71,7 +71,7 @@ public class JRoot extends JNode {
...
@@ -71,7 +71,7 @@ public class JRoot extends JNode {
}
}
public
JNode
searchClassInTree
(
JNode
node
)
{
public
JNode
searchClassInTree
(
JNode
node
)
{
Enumeration
en
=
this
.
breadthFirstEnumeration
();
Enumeration
<?>
en
=
this
.
breadthFirstEnumeration
();
while
(
en
.
hasMoreElements
())
{
while
(
en
.
hasMoreElements
())
{
Object
obj
=
en
.
nextElement
();
Object
obj
=
en
.
nextElement
();
if
(
node
.
equals
(
obj
))
{
if
(
node
.
equals
(
obj
))
{
...
...
jadx-gui/src/main/java/jadx/gui/ui/LogViewer.java
浏览文件 @
76a0608a
...
@@ -41,6 +41,7 @@ class LogViewer extends JDialog {
...
@@ -41,6 +41,7 @@ class LogViewer extends JDialog {
JPanel
controlPane
=
new
JPanel
();
JPanel
controlPane
=
new
JPanel
();
controlPane
.
setBorder
(
BorderFactory
.
createEmptyBorder
(
5
,
5
,
5
,
5
));
controlPane
.
setBorder
(
BorderFactory
.
createEmptyBorder
(
5
,
5
,
5
,
5
));
@SuppressWarnings
(
"unchecked"
)
final
JComboBox
cb
=
new
JComboBox
(
LEVEL_ITEMS
);
final
JComboBox
cb
=
new
JComboBox
(
LEVEL_ITEMS
);
cb
.
setSelectedItem
(
level
);
cb
.
setSelectedItem
(
level
);
cb
.
addActionListener
(
new
ActionListener
()
{
cb
.
addActionListener
(
new
ActionListener
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录