diff --git a/Bcore/src/main/java/top/niunaijun/blackbox/core/VMCore.java b/Bcore/src/main/java/top/niunaijun/blackbox/core/VMCore.java index 4ea8188..56d3f1c 100644 --- a/Bcore/src/main/java/top/niunaijun/blackbox/core/VMCore.java +++ b/Bcore/src/main/java/top/niunaijun/blackbox/core/VMCore.java @@ -173,12 +173,12 @@ public class VMCore { } catch (Throwable ignored) { } - Method[] declaredMethods = aClass.getMethods(); - for (Method declaredMethod : declaredMethods) { - if (declaredMethod.getName().equals(methodName)) { - String desc = MethodUtils.getDesc(declaredMethod); + Method[] methods = aClass.getMethods(); + for (Method method : methods) { + if (method.getName().equals(methodName)) { + String desc = MethodUtils.getDesc(method); if (desc.equals(signature)) { - return declaredMethod; + return method; } } }