INNER CODE UNIT · Java
findMethodNoChecks
CodingGay/BlackDex · Bcore/black-fake/src/main/java/reflection/MirrorReflection.java:196
public static Method findMethodNoChecks(Class<?> clazz, String name) {
try {
Method[] methods = clazz.getDeclaredMethods();
for (Method method : methods) {
if (method.getName().equals(name)) {
method.setAccessible(true);
return method;
}
}
} catch (Throwable ignored) {
}
return null;
}
private static void checkForFindMethod(Class<?> clazz, String name, Class<?>... parameterTypes) {
if (parameterTypes != null) {
for (int i = 0; i < parameterTypes.length; i++) {
if (parameterTypes[i] == null) {