Skip to content

Commit

Permalink
[DEX] Include MethodHandleKey and CallSiteKey
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Oct 27, 2024
1 parent 94e1988 commit fac0467
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/reandroid/dex/model/DexClassRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ default boolean contains(Key key){
if(key instanceof TypeListKey){
return contains(SectionType.TYPE_LIST, key);
}
if(key instanceof MethodHandleKey){
return contains(SectionType.METHOD_HANDLE, key);
}
if(key instanceof CallSiteKey){
return contains(SectionType.CALL_SITE_ID, key);
}
throw new IllegalArgumentException("Unknown key type: " + key.getClass() + ", '" + key + "'");
}
default boolean containsClass(TypeKey key){
Expand Down

0 comments on commit fac0467

Please sign in to comment.