Skip to content

Commit

Permalink
rename local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nnjun committed Jul 26, 2021
1 parent 07e25ef commit 69f09b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Bcore/src/main/java/top/niunaijun/blackbox/core/VMCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ public static Object findMethod(String className, String methodName, String sign
} 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;
}
}
}
Expand Down

0 comments on commit 69f09b7

Please sign in to comment.