From 69f09b7f3264b118174f3966774896f78999613f Mon Sep 17 00:00:00 2001 From: Milk <1871357815@qq.com> Date: Mon, 26 Jul 2021 17:14:29 +0800 Subject: [PATCH] rename local variable --- .../main/java/top/niunaijun/blackbox/core/VMCore.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } } }