Skip to content

Commit

Permalink
style: cs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Sep 19, 2022
1 parent 04eb3a1 commit a1bf60e
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,13 @@ private ResType readTableType() throws IOException, AndrolibException {

if ((typeFlags & 0x01) != 0) {
LOGGER.info("Sparse type flags detected: " + mTypeSpec.getName());
}else{
// LOGGER.info("Not sparse type flags detected: " + mTypeSpec.getName());
}

HashMap<Integer, Integer> entryOffsetMap = new LinkedHashMap();
for (int i = 0; i < entryCount; i++){
for (int i = 0; i < entryCount; i++) {
if ((typeFlags & 0x01) != 0) {
entryOffsetMap.put(mIn.readUnsignedShort(), mIn.readUnsignedShort());
}else{
} else {
entryOffsetMap.put(i, mIn.readInt());
}
}
Expand All @@ -289,9 +287,11 @@ private ResType readTableType() throws IOException, AndrolibException {

mType = flags.isInvalid && !mKeepBroken ? null : mPkg.getOrCreateConfig(flags);

for (int i : entryOffsetMap.keySet()){
for (int i : entryOffsetMap.keySet()) {
int offset = entryOffsetMap.get(i);
if (offset == -1) continue;
if (offset == -1) {
continue;
}
mMissingResSpecMap.put(i, false);
mResId = (mResId & 0xffff0000) | i;
readEntry(readEntryData());
Expand Down Expand Up @@ -533,12 +533,12 @@ private void addTypeSpec(ResTypeSpec resTypeSpec) {
private void addMissingResSpecs() throws AndrolibException {
int resId = mResId & 0xffff0000;

for (int i : mMissingResSpecMap.keySet()){
for (int i : mMissingResSpecMap.keySet()) {
if (mMissingResSpecMap.get(i)) continue;

ResResSpec spec = new ResResSpec(new ResID(resId | i), "APKTOOL_DUMMY_" + Integer.toHexString(i), mPkg, mTypeSpec);

// If we already have this resID dont add it again.
// If we already have this resID don't add it again.
if (! mPkg.hasResSpec(new ResID(resId | i))) {
mPkg.addResSpec(spec);
mTypeSpec.addResSpec(spec);
Expand Down

0 comments on commit a1bf60e

Please sign in to comment.