Skip to content

Commit f6ee250

Browse files
committed
Clean up warning in AnnotatedElementUtils
1 parent 2bb15f7 commit f6ee250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
916916
}
917917

918918
if (element instanceof Class) { // otherwise getAnnotations doesn't return anything new
919-
Class<?> superclass = ((Class) element).getSuperclass();
919+
Class<?> superclass = ((Class<?>) element).getSuperclass();
920920
if (superclass != null && superclass != Object.class) {
921921
List<Annotation> inheritedAnnotations = new LinkedList<>();
922922
for (Annotation annotation : element.getAnnotations()) {

0 commit comments

Comments
 (0)