code style cleanup

This commit is contained in:
Connor Tumbleson 2017-12-08 16:38:31 -05:00
parent a0cd772205
commit b525f235f8

View File

@ -223,15 +223,14 @@ public class ARSCDecoder {
}
mType = flags.isInvalid && !mKeepBroken ? null : mPkg.getOrCreateConfig(flags);
HashMap<Integer, EntryData> offsetsToEntryData =
new HashMap<Integer, EntryData>();
HashMap<Integer, EntryData> offsetsToEntryData = new HashMap<Integer, EntryData>();
for (int offset : entryOffsets) {
if (offset == -1 || offsetsToEntryData.containsKey(offset)) {
continue;
}
if (offset == -1 || offsetsToEntryData.containsKey(offset)) {
continue;
}
offsetsToEntryData.put(offset, readEntryData());
offsetsToEntryData.put(offset, readEntryData());
}
for (int i = 0; i < entryOffsets.length; i++) {
@ -246,11 +245,6 @@ public class ARSCDecoder {
return mType;
}
private class EntryData {
public short mFlags;
public int mSpecNamesId;
public ResValue mValue;
}
private EntryData readEntryData() throws IOException, AndrolibException {
short size = mIn.readShort();
@ -269,7 +263,6 @@ public class ARSCDecoder {
}
private void readEntry(EntryData entryData) throws AndrolibException {
short flags = entryData.mFlags;
int specNamesId = entryData.mSpecNamesId;
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 int KNOWN_CONFIG_BYTES = 56;