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
ec3b71e5
Commit
ec3b71e5
authored
Feb 21, 2015
by
Skylot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: don't hardcode attributes count
parent
f7303881
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
AType.java
jadx-core/src/main/java/jadx/core/dex/attributes/AType.java
+1
-6
AttributeStorage.java
.../main/java/jadx/core/dex/attributes/AttributeStorage.java
+1
-1
No files found.
jadx-core/src/main/java/jadx/core/dex/attributes/AType.java
View file @
ec3b71e5
...
...
@@ -22,17 +22,12 @@ import jadx.core.dex.trycatch.SplitterBlockAttr;
/**
* Attribute types enumeration,
* uses generic type for omit cast after
in
'AttributeStorage.get' method
* uses generic type for omit cast after 'AttributeStorage.get' method
*
* @param <T> attribute class implementation
*/
public
class
AType
<
T
extends
IAttribute
>
{
private
AType
()
{
}
public
static
final
int
FIELDS_COUNT
=
18
;
public
static
final
AType
<
AttrList
<
JumpInfo
>>
JUMP
=
new
AType
<
AttrList
<
JumpInfo
>>();
public
static
final
AType
<
AttrList
<
LoopInfo
>>
LOOP
=
new
AType
<
AttrList
<
LoopInfo
>>();
...
...
jadx-core/src/main/java/jadx/core/dex/attributes/AttributeStorage.java
View file @
ec3b71e5
...
...
@@ -24,7 +24,7 @@ public class AttributeStorage {
public
AttributeStorage
()
{
flags
=
EnumSet
.
noneOf
(
AFlag
.
class
);
attributes
=
new
IdentityHashMap
<
AType
<?>,
IAttribute
>(
AType
.
FIELDS_COUNT
);
attributes
=
new
IdentityHashMap
<
AType
<?>,
IAttribute
>();
}
public
void
add
(
AFlag
flag
)
{
...
...
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