Clean up warning in AnnotatedElementUtils

This commit is contained in:
Sam Brannen
2018-08-23 18:24:18 +02:00
parent 2bb15f7ed2
commit f6ee2508ef

View File

@@ -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()) {