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
363cd85b
Commit
363cd85b
authored
May 12, 2019
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: remove useless array creation
parent
7bb75271
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ConvertToClsSet.java
jadx-core/src/main/java/jadx/core/clsp/ConvertToClsSet.java
+2
-2
InputFile.java
jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
+2
-2
No files found.
jadx-core/src/main/java/jadx/core/clsp/ConvertToClsSet.java
View file @
363cd85b
...
...
@@ -38,7 +38,7 @@ public class ConvertToClsSet {
if
(
f
.
isDirectory
())
{
addFilesFromDirectory
(
f
,
inputFiles
);
}
else
{
InputFile
.
addFilesFrom
(
f
,
inputFiles
);
InputFile
.
addFilesFrom
(
f
,
inputFiles
,
false
);
}
}
for
(
InputFile
inputFile
:
inputFiles
)
{
...
...
@@ -65,7 +65,7 @@ public class ConvertToClsSet {
addFilesFromDirectory
(
file
,
inputFiles
);
}
else
{
try
{
InputFile
.
addFilesFrom
(
file
,
inputFiles
);
InputFile
.
addFilesFrom
(
file
,
inputFiles
,
false
);
}
catch
(
Exception
e
)
{
LOG
.
warn
(
"Skip file: {}, load error: {}"
,
file
,
e
.
getMessage
());
}
...
...
jadx-core/src/main/java/jadx/core/utils/files/InputFile.java
View file @
363cd85b
...
...
@@ -35,9 +35,9 @@ public class InputFile {
private
final
File
file
;
private
final
List
<
DexFile
>
dexFiles
=
new
ArrayList
<>();
public
static
void
addFilesFrom
(
File
file
,
List
<
InputFile
>
list
,
boolean
...
skipSources
)
throws
IOException
,
DecodeException
{
public
static
void
addFilesFrom
(
File
file
,
List
<
InputFile
>
list
,
boolean
skipSources
)
throws
IOException
,
DecodeException
{
InputFile
inputFile
=
new
InputFile
(
file
);
inputFile
.
searchDexFiles
(
skipSources
.
length
==
0
?
false
:
skipSources
[
0
]
);
inputFile
.
searchDexFiles
(
skipSources
);
list
.
add
(
inputFile
);
}
...
...
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