Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Quincy379
jadx
提交
47917fd5
J
jadx
项目概览
Quincy379
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
47917fd5
编写于
10月 29, 2018
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: resolve some sonar critical issues
上级
0abb51c8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
21 addition
and
16 deletion
+21
-16
jadx-core/src/main/java/jadx/core/dex/attributes/EmptyAttrStorage.java
.../main/java/jadx/core/dex/attributes/EmptyAttrStorage.java
+4
-0
jadx-core/src/main/java/jadx/core/dex/attributes/IAttribute.java
...re/src/main/java/jadx/core/dex/attributes/IAttribute.java
+1
-1
jadx-core/src/main/java/jadx/core/dex/instructions/GotoNode.java
...re/src/main/java/jadx/core/dex/instructions/GotoNode.java
+0
-10
jadx-core/src/main/java/jadx/core/dex/instructions/TargetInsnNode.java
.../main/java/jadx/core/dex/instructions/TargetInsnNode.java
+5
-2
jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java
jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java
+1
-1
jadx-gui/src/main/java/jadx/gui/settings/JadxSettingsWindow.java
...i/src/main/java/jadx/gui/settings/JadxSettingsWindow.java
+1
-1
jadx-gui/src/main/java/jadx/gui/ui/codearea/EditorTheme.java
jadx-gui/src/main/java/jadx/gui/ui/codearea/EditorTheme.java
+9
-1
未找到文件。
jadx-core/src/main/java/jadx/core/dex/attributes/EmptyAttrStorage.java
浏览文件 @
47917fd5
...
...
@@ -34,18 +34,22 @@ public final class EmptyAttrStorage extends AttributeStorage {
@Override
public
void
clear
()
{
// ignore
}
@Override
public
void
remove
(
AFlag
flag
)
{
// ignore
}
@Override
public
<
T
extends
IAttribute
>
void
remove
(
AType
<
T
>
type
)
{
// ignore
}
@Override
public
void
remove
(
IAttribute
attr
)
{
// ignore
}
@Override
...
...
jadx-core/src/main/java/jadx/core/dex/attributes/IAttribute.java
浏览文件 @
47917fd5
package
jadx.core.dex.attributes
;
public
interface
IAttribute
{
AType
<?
extends
IAttribute
>
getType
();
<
T
extends
IAttribute
>
AType
<
T
>
getType
();
}
jadx-core/src/main/java/jadx/core/dex/instructions/GotoNode.java
浏览文件 @
47917fd5
package
jadx.core.dex.instructions
;
import
jadx.core.dex.nodes.BlockNode
;
import
jadx.core.utils.InsnUtils
;
public
class
GotoNode
extends
TargetInsnNode
{
...
...
@@ -20,15 +19,6 @@ public class GotoNode extends TargetInsnNode {
return
target
;
}
@Override
public
boolean
replaceTargetBlock
(
BlockNode
origin
,
BlockNode
replace
)
{
return
false
;
}
@Override
public
void
initBlocks
(
BlockNode
curBlock
)
{
}
@Override
public
String
toString
()
{
return
super
.
toString
()
+
"-> "
+
InsnUtils
.
formatOffset
(
target
);
...
...
jadx-core/src/main/java/jadx/core/dex/instructions/TargetInsnNode.java
浏览文件 @
47917fd5
...
...
@@ -9,7 +9,10 @@ public abstract class TargetInsnNode extends InsnNode {
super
(
type
,
argsCount
);
}
public
abstract
void
initBlocks
(
BlockNode
curBlock
);
public
void
initBlocks
(
BlockNode
curBlock
)
{
}
public
abstract
boolean
replaceTargetBlock
(
BlockNode
origin
,
BlockNode
replace
);
public
boolean
replaceTargetBlock
(
BlockNode
origin
,
BlockNode
replace
)
{
return
false
;
}
}
jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java
浏览文件 @
47917fd5
...
...
@@ -276,7 +276,7 @@ public class JadxSettings extends JadxCLIArgs {
fromVersion
++;
}
if
(
fromVersion
==
1
)
{
setEditorThemePath
(
EditorTheme
.
ALL_THEMES
[
0
]
.
getPath
());
setEditorThemePath
(
EditorTheme
.
getDefaultTheme
()
.
getPath
());
fromVersion
++;
}
if
(
fromVersion
==
2
)
{
...
...
jadx-gui/src/main/java/jadx/gui/settings/JadxSettingsWindow.java
浏览文件 @
47917fd5
...
...
@@ -190,7 +190,7 @@ public class JadxSettingsWindow extends JDialog {
}
});
EditorTheme
[]
editorThemes
=
EditorTheme
.
ALL_THEMES
;
EditorTheme
[]
editorThemes
=
EditorTheme
.
getAllThemes
()
;
JComboBox
<
EditorTheme
>
themesCbx
=
new
JComboBox
<>(
editorThemes
);
for
(
EditorTheme
theme
:
editorThemes
)
{
if
(
theme
.
getPath
().
equals
(
settings
.
getEditorThemePath
()))
{
...
...
jadx-gui/src/main/java/jadx/gui/ui/codearea/EditorTheme.java
浏览文件 @
47917fd5
...
...
@@ -3,7 +3,7 @@ package jadx.gui.ui.codearea;
public
final
class
EditorTheme
{
private
static
final
String
RSTA_THEME_PATH
=
"/org/fife/ui/rsyntaxtextarea/themes/"
;
p
ublic
static
final
EditorTheme
[]
ALL_THEMES
=
p
rivate
static
final
EditorTheme
[]
ALL_THEMES
=
new
EditorTheme
[]{
new
EditorTheme
(
"default"
),
new
EditorTheme
(
"eclipse"
),
...
...
@@ -13,6 +13,14 @@ public final class EditorTheme {
new
EditorTheme
(
"monokai"
)
};
public
static
EditorTheme
[]
getAllThemes
()
{
return
ALL_THEMES
;
}
public
static
EditorTheme
getDefaultTheme
()
{
return
ALL_THEMES
[
0
];
}
private
final
String
name
;
private
final
String
path
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录