INNER CODE UNIT · Java

findMethodNoChecks

CodingGay/BlackDex · Bcore/black-fake/src/main/java/reflection/MirrorReflection.java:182

    public static Method findMethodNoChecks(Class<?> clazz, String name, Class<?>... parameterTypes) {
        while (clazz != null) {
            try {
                Method method = clazz.getDeclaredMethod(name, parameterTypes);
                method.setAccessible(true);
                return method;
            } catch (NoSuchMethodException ignored) {
            }
            clazz = clazz.getSuperclass();
        }
        return null;
    }


    public static Method findMethodNoChecks(Class<?> clazz, String name) {
        try {
            Method[] methods = clazz.getDeclaredMethods();
            for (Method method : methods) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…