Skip to content

Commit

Permalink
[DEX] Fix: MethodKey parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Nov 25, 2024
1 parent dc6fe61 commit 0643ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/reandroid/dex/key/MethodKey.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,15 @@ public static MethodKey parse(String text) {
if(i < 0){
return null;
}
//TODO: avoid substring usage
String defining = text.substring(0, i + 1);
text = text.substring(i + 3);
i = text.indexOf('(');
if(i < 0){
return null;
}
String name = text.substring(0, i);
text = text.substring(i + 1);
text = text.substring(i);
i = text.indexOf(')');
if(i < 0){
return null;
Expand Down

0 comments on commit 0643ba4

Please sign in to comment.