diff --git a/src/main/java/com/reandroid/dex/refactor/RenameMethods.java b/src/main/java/com/reandroid/dex/refactor/RenameMethods.java index 2f1da9c8c..8496b2930 100644 --- a/src/main/java/com/reandroid/dex/refactor/RenameMethods.java +++ b/src/main/java/com/reandroid/dex/refactor/RenameMethods.java @@ -51,7 +51,7 @@ public void add(DexClassRepository classRepository, MethodKey search, MethodKey while (iterator.hasNext()) { MethodKey equivalent = iterator.next(); KeyPair pair = new KeyPair<>(equivalent, - replace.changeDeclaring(equivalent.getDeclaring())); + equivalent.changeName(replace.getName())); if (isLocked(pair)) { lockAll(list); list.clear();