Skip to content

Commit

Permalink
[DEX] Fix: Invalid remove request
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Jan 1, 2025
1 parent 84894d8 commit 75b5100
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/reandroid/dex/data/StringData.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ public void removeSelf(){
public void removeSelf(StringId request) {
if (request == getOffsetReference()) {
super.removeSelf();
} else {
throw new DexException("Invalid remove request");
}
throw new DexException("Invalid remove request");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public StringDataSection(IntegerPair countAndOffset, SectionType<StringData> sec
super(sectionType, new StringDataArray(countAndOffset, sectionType.getCreator()));
}

@Override
int clearUnused() {
return 0;
}

@Override
boolean keyChanged(SectionItem block, Key key) {
return super.keyChanged(block, key);
Expand Down

0 comments on commit 75b5100

Please sign in to comment.