Skip to content

Commit

Permalink
Clean up warning in AnnotatedElementUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Aug 23, 2018
1 parent 2bb15f7 commit f6ee250
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -916,7 +916,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
}

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()) {
Expand Down

0 comments on commit f6ee250

Please sign in to comment.