Clean up warning in AnnotatedElementUtils
This commit is contained in:
parent
2bb15f7ed2
commit
f6ee2508ef
|
|
@ -916,7 +916,7 @@ public abstract class AnnotatedElementUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (element instanceof Class) { // otherwise getAnnotations doesn't return anything new
|
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) {
|
if (superclass != null && superclass != Object.class) {
|
||||||
List<Annotation> inheritedAnnotations = new LinkedList<>();
|
List<Annotation> inheritedAnnotations = new LinkedList<>();
|
||||||
for (Annotation annotation : element.getAnnotations()) {
|
for (Annotation annotation : element.getAnnotations()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue