Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
keyescgm
jadx
提交
e09e8e58
J
jadx
项目概览
keyescgm
/
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,发现更多精彩内容 >>
提交
e09e8e58
编写于
10月 28, 2020
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: resolve some issues reported by sonar and lgtm
上级
92773417
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
24 addition
and
19 deletion
+24
-19
.travis.yml
.travis.yml
+5
-0
jadx-cli/src/main/java/jadx/cli/clst/ConvertToClsSet.java
jadx-cli/src/main/java/jadx/cli/clst/ConvertToClsSet.java
+1
-1
jadx-core/src/main/java/jadx/api/ResourcesLoader.java
jadx-core/src/main/java/jadx/api/ResourcesLoader.java
+1
-4
jadx-gui/src/main/java/jadx/gui/ui/HeapUsageBar.java
jadx-gui/src/main/java/jadx/gui/ui/HeapUsageBar.java
+1
-1
jadx-gui/src/main/java/jadx/gui/ui/JPackagePopupMenu.java
jadx-gui/src/main/java/jadx/gui/ui/JPackagePopupMenu.java
+3
-2
jadx-gui/src/main/java/jadx/gui/ui/RenameDialog.java
jadx-gui/src/main/java/jadx/gui/ui/RenameDialog.java
+3
-3
jadx-gui/src/main/java/jadx/gui/utils/CertificateManager.java
...-gui/src/main/java/jadx/gui/utils/CertificateManager.java
+1
-1
scripts/travis-checks.sh
scripts/travis-checks.sh
+9
-0
scripts/travis-master.sh
scripts/travis-master.sh
+0
-7
未找到文件。
.travis.yml
浏览文件 @
e09e8e58
...
...
@@ -28,6 +28,11 @@ script: ./gradlew clean build
jobs
:
include
:
-
stage
:
checks
jdk
:
openjdk11
if
:
branch = master AND repo = env(MAIN_REPO) AND type = push
script
:
bash scripts/travis-checks.sh
-
stage
:
deploy-unstable
jdk
:
openjdk8
if
:
branch = master AND repo = env(MAIN_REPO) AND type = push
...
...
jadx-cli/src/main/java/jadx/cli/clst/ConvertToClsSet.java
浏览文件 @
e09e8e58
...
...
@@ -34,7 +34,7 @@ public class ConvertToClsSet {
usage
();
System
.
exit
(
1
);
}
List
<
Path
>
inputPaths
=
Stream
.
of
(
args
).
map
(
s
->
Paths
.
get
(
s
)
).
collect
(
Collectors
.
toList
());
List
<
Path
>
inputPaths
=
Stream
.
of
(
args
).
map
(
Paths:
:
get
).
collect
(
Collectors
.
toList
());
Path
output
=
inputPaths
.
remove
(
0
);
JadxPluginManager
pluginManager
=
new
JadxPluginManager
();
...
...
jadx-core/src/main/java/jadx/api/ResourcesLoader.java
浏览文件 @
e09e8e58
...
...
@@ -128,9 +128,7 @@ public final class ResourcesLoader {
return
;
}
if
(
FileUtils
.
isZipFile
(
file
))
{
ZipSecurity
.
visitZipEntries
(
file
,
(
zipFile
,
entry
)
->
{
addEntry
(
list
,
file
,
entry
);
});
ZipSecurity
.
visitZipEntries
(
file
,
(
zipFile
,
entry
)
->
addEntry
(
list
,
file
,
entry
));
}
else
{
addResourceFile
(
list
,
file
);
}
...
...
@@ -158,7 +156,6 @@ public final class ResourcesLoader {
}
}
@SuppressWarnings
(
"CharsetObjectCanBeUsed"
)
public
static
ICodeInfo
loadToCodeWriter
(
InputStream
is
)
throws
IOException
{
ByteArrayOutputStream
baos
=
new
ByteArrayOutputStream
(
READ_BUFFER_SIZE
);
copyStream
(
is
,
baos
);
...
...
jadx-gui/src/main/java/jadx/gui/ui/HeapUsageBar.java
浏览文件 @
e09e8e58
...
...
@@ -25,7 +25,7 @@ public class HeapUsageBar extends JProgressBar {
private
static
final
Logger
LOG
=
LoggerFactory
.
getLogger
(
HeapUsageBar
.
class
);
private
static
final
double
GB
=
1024
*
1024
*
1024
;
private
static
final
double
GB
=
1024
*
1024
*
1024
d
;
private
static
final
Color
GREEN
=
new
Color
(
0
,
180
,
0
);
private
static
final
Color
RED
=
new
Color
(
200
,
0
,
0
);
...
...
jadx-gui/src/main/java/jadx/gui/ui/JPackagePopupMenu.java
浏览文件 @
e09e8e58
...
...
@@ -87,8 +87,9 @@ class JPackagePopupMenu extends JPopupMenu {
}
private
String
getRawPackage
(
JPackage
pkg
)
{
for
(
JClass
cls
:
pkg
.
getClasses
())
{
return
cls
.
getRootClass
().
getCls
().
getClassNode
().
getClassInfo
().
getPackage
();
List
<
JClass
>
classes
=
pkg
.
getClasses
();
if
(!
classes
.
isEmpty
())
{
return
classes
.
get
(
0
).
getRootClass
().
getCls
().
getClassNode
().
getClassInfo
().
getPackage
();
}
for
(
JPackage
innerPkg
:
pkg
.
getInnerPackages
())
{
String
rawPackage
=
getRawPackage
(
innerPkg
);
...
...
jadx-gui/src/main/java/jadx/gui/ui/RenameDialog.java
浏览文件 @
e09e8e58
...
...
@@ -159,13 +159,13 @@ public class RenameDialog extends JDialog {
int
i
=
0
;
while
(
i
<
deobfMap
.
size
())
{
if
(
deobfMap
.
get
(
i
).
startsWith
(
id
))
{
LOG
.
debug
(
"updateDeobfMap(): Removing entry
"
+
deobfMap
.
get
(
i
));
LOG
.
debug
(
"updateDeobfMap(): Removing entry
{}"
,
deobfMap
.
get
(
i
));
deobfMap
.
remove
(
i
);
}
else
{
i
++;
}
}
LOG
.
debug
(
"updateDeobfMap(): Placing alias =
"
+
alias
);
LOG
.
debug
(
"updateDeobfMap(): Placing alias =
{}"
,
alias
);
deobfMap
.
add
(
alias
);
return
deobfMap
;
}
...
...
@@ -272,7 +272,7 @@ public class RenameDialog extends JDialog {
try
{
cls
.
reload
();
IndexJob
.
refreshIndex
(
cache
,
cls
.
getCls
());
}
catch
(
Throwable
e
)
{
}
catch
(
Exception
e
)
{
LOG
.
error
(
"Failed to reload class: {}"
,
cls
,
e
);
}
}
...
...
jadx-gui/src/main/java/jadx/gui/utils/CertificateManager.java
浏览文件 @
e09e8e58
...
...
@@ -155,7 +155,7 @@ public class CertificateManager {
public
static
String
getThumbPrint
(
X509Certificate
cert
,
String
type
)
throws
NoSuchAlgorithmException
,
CertificateEncodingException
{
MessageDigest
md
=
MessageDigest
.
getInstance
(
type
);
MessageDigest
md
=
MessageDigest
.
getInstance
(
type
);
// lgtm [java/weak-cryptographic-algorithm]
byte
[]
der
=
cert
.
getEncoded
();
md
.
update
(
der
);
byte
[]
digest
=
md
.
digest
();
...
...
scripts/travis-checks.sh
0 → 100644
浏览文件 @
e09e8e58
#!/usr/bin/env bash
set
-e
# upload coverage to codecov
./gradlew clean build jacocoTestReport
bash <
(
curl
-s
https://codecov.io/bash
)
||
echo
"Codecov did not collect coverage reports"
# run sonar checks
./gradlew clean sonarqube
-Dsonar
.host.url
=
${
SONAR_HOST
}
-Dsonar
.projectKey
=
jadx
-Dsonar
.organization
=
${
SONAR_ORG
}
-Dsonar
.login
=
${
SONAR_TOKEN
}
||
echo
"Skip sonar build and upload"
scripts/travis-master.sh
浏览文件 @
e09e8e58
#!/usr/bin/env bash
set
-e
# upload coverage to codecov
./gradlew clean build jacocoTestReport
bash <
(
curl
-s
https://codecov.io/bash
)
||
echo
"Codecov did not collect coverage reports"
# run sonar checks
./gradlew clean sonarqube
-Dsonar
.host.url
=
${
SONAR_HOST
}
-Dsonar
.projectKey
=
jadx
-Dsonar
.organization
=
${
SONAR_ORG
}
-Dsonar
.login
=
${
SONAR_TOKEN
}
||
echo
"Skip sonar build and upload"
# upload bundles to bintray unstable package
./gradlew clean dist
BINTRAY_PACKAGE
=
unstable bash scripts/bintray-upload.sh
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录