private T getFromDirectClass()

in safeguard-impl/src/main/java/org/apache/safeguard/impl/annotation/AnnotationFinder.java [80:86]


    private <T extends Annotation> T getFromDirectClass(final Class<T> type, final AnnotatedType<?> declaringClass) {
        final T annotation = declaringClass.getAnnotation(type);
        if (annotation != null) {
            return annotation;
        }
        return null;
    }