Clean up warning in AnnotatedElementUtils

master
Sam Brannen 6 years ago
parent 2bb15f7ed2
commit f6ee2508ef
  1. 2
      spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java

@ -916,7 +916,7 @@ public abstract class AnnotatedElementUtils {
}
if (element instanceof Class) { // otherwise getAnnotations doesn't return anything new
Class<?> superclass = ((Class) element).getSuperclass();
Class<?> superclass = ((Class<?>) element).getSuperclass();
if (superclass != null && superclass != Object.class) {
List<Annotation> inheritedAnnotations = new LinkedList<>();
for (Annotation annotation : element.getAnnotations()) {

Loading…
Cancel
Save