in safeguard-impl/src/main/java/org/apache/safeguard/impl/annotation/AnnotationFinder.java [112:122]
private <T extends Annotation> T getFromParentClass(final Class<T> type, final AnnotatedType<?> declaringClass) {
final Class<?> parent = declaringClass.getJavaClass().getSuperclass();
if (parent != null && parent != Object.class) {
final AnnotatedType<?> annotatedType = manager.createAnnotatedType(parent);
final T annotation = annotatedType.getAnnotation(type);
if (annotation != null) {
return annotation;
}
}
return null;
}