private void recursiveCallSpecificMethod()

in base/src/main/java/org/apache/sling/performance/FrameworkPerformanceMethod.java [281:297]


    private void recursiveCallSpecificMethod(Class test, Object instance,
            Class<? extends Annotation> methodAnnotation)
            throws InvocationTargetException, InvalidAttributesException,
            IllegalAccessException, InstantiationException {
        if (test.getSuperclass() != null) {
            recursiveCallSpecificMethod(test.getSuperclass(), instance,
                    methodAnnotation);
        }

        Method testMethod = getSpecificTestMethod(test, methodAnnotation);
        if (testMethod != null) {
            if (!testMethod.isAccessible()) {
                testMethod.setAccessible(true);
            }
            testMethod.invoke(instance);
        }
    }