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
a2513240
Commit
a2513240
authored
Mar 26, 2015
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fix method parameters annotation parsing (fix #57)
parent
0d509f94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
AnnotationsList.java
...jadx/core/dex/attributes/annotations/AnnotationsList.java
+3
-0
AnnotationsParser.java
...in/java/jadx/core/dex/nodes/parser/AnnotationsParser.java
+8
-1
No files found.
jadx-core/src/main/java/jadx/core/dex/attributes/annotations/AnnotationsList.java
View file @
a2513240
...
...
@@ -5,12 +5,15 @@ import jadx.core.dex.attributes.IAttribute;
import
jadx.core.utils.Utils
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
public
class
AnnotationsList
implements
IAttribute
{
public
static
final
AnnotationsList
EMPTY
=
new
AnnotationsList
(
Collections
.<
Annotation
>
emptyList
());
private
final
Map
<
String
,
Annotation
>
map
;
public
AnnotationsList
(
List
<
Annotation
>
anList
)
{
...
...
jadx-core/src/main/java/jadx/core/dex/nodes/parser/AnnotationsParser.java
View file @
a2513240
...
...
@@ -71,8 +71,14 @@ public class AnnotationsParser {
}
private
AnnotationsList
readAnnotationSet
(
int
offset
)
throws
DecodeException
{
if
(
offset
==
0
)
{
return
AnnotationsList
.
EMPTY
;
}
Section
section
=
dex
.
openSection
(
offset
);
int
size
=
section
.
readInt
();
if
(
size
==
0
)
{
return
AnnotationsList
.
EMPTY
;
}
List
<
Annotation
>
list
=
new
ArrayList
<
Annotation
>(
size
);
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
Section
anSection
=
dex
.
openSection
(
section
.
readInt
());
...
...
@@ -86,7 +92,8 @@ public class AnnotationsParser {
EncValueParser
parser
=
new
EncValueParser
(
dex
,
s
);
Visibility
visibility
=
null
;
if
(
readVisibility
)
{
visibility
=
VISIBILITIES
[
s
.
readByte
()];
byte
v
=
s
.
readByte
();
visibility
=
VISIBILITIES
[
v
];
}
int
typeIndex
=
s
.
readUleb128
();
int
size
=
s
.
readUleb128
();
...
...
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