mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +01:00
code style cleanup
This commit is contained in:
parent
a0cd772205
commit
b525f235f8
@ -223,15 +223,14 @@ public class ARSCDecoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mType = flags.isInvalid && !mKeepBroken ? null : mPkg.getOrCreateConfig(flags);
|
mType = flags.isInvalid && !mKeepBroken ? null : mPkg.getOrCreateConfig(flags);
|
||||||
HashMap<Integer, EntryData> offsetsToEntryData =
|
HashMap<Integer, EntryData> offsetsToEntryData = new HashMap<Integer, EntryData>();
|
||||||
new HashMap<Integer, EntryData>();
|
|
||||||
|
|
||||||
for (int offset : entryOffsets) {
|
for (int offset : entryOffsets) {
|
||||||
if (offset == -1 || offsetsToEntryData.containsKey(offset)) {
|
if (offset == -1 || offsetsToEntryData.containsKey(offset)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
offsetsToEntryData.put(offset, readEntryData());
|
offsetsToEntryData.put(offset, readEntryData());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < entryOffsets.length; i++) {
|
for (int i = 0; i < entryOffsets.length; i++) {
|
||||||
@ -246,11 +245,6 @@ public class ARSCDecoder {
|
|||||||
return mType;
|
return mType;
|
||||||
}
|
}
|
||||||
|
|
||||||
private class EntryData {
|
|
||||||
public short mFlags;
|
|
||||||
public int mSpecNamesId;
|
|
||||||
public ResValue mValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
private EntryData readEntryData() throws IOException, AndrolibException {
|
private EntryData readEntryData() throws IOException, AndrolibException {
|
||||||
short size = mIn.readShort();
|
short size = mIn.readShort();
|
||||||
@ -269,7 +263,6 @@ public class ARSCDecoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void readEntry(EntryData entryData) throws AndrolibException {
|
private void readEntry(EntryData entryData) throws AndrolibException {
|
||||||
short flags = entryData.mFlags;
|
|
||||||
int specNamesId = entryData.mSpecNamesId;
|
int specNamesId = entryData.mSpecNamesId;
|
||||||
ResValue value = entryData.mValue;
|
ResValue value = entryData.mValue;
|
||||||
|
|
||||||
@ -598,6 +591,12 @@ public class ARSCDecoder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class EntryData {
|
||||||
|
public short mFlags;
|
||||||
|
public int mSpecNamesId;
|
||||||
|
public ResValue mValue;
|
||||||
|
}
|
||||||
|
|
||||||
private static final Logger LOGGER = Logger.getLogger(ARSCDecoder.class.getName());
|
private static final Logger LOGGER = Logger.getLogger(ARSCDecoder.class.getName());
|
||||||
private static final int KNOWN_CONFIG_BYTES = 56;
|
private static final int KNOWN_CONFIG_BYTES = 56;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user