From 0643ba42934f27b3fadb06f4e4de35c2c727ce2c Mon Sep 17 00:00:00 2001 From: REAndroid Date: Mon, 25 Nov 2024 15:40:32 +0100 Subject: [PATCH] [DEX] Fix: MethodKey parsing --- src/main/java/com/reandroid/dex/key/MethodKey.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/reandroid/dex/key/MethodKey.java b/src/main/java/com/reandroid/dex/key/MethodKey.java index 32c1525a3..d9bd3f06c 100644 --- a/src/main/java/com/reandroid/dex/key/MethodKey.java +++ b/src/main/java/com/reandroid/dex/key/MethodKey.java @@ -335,6 +335,7 @@ 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('('); @@ -342,7 +343,7 @@ public static MethodKey parse(String text) { 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;