diff --git a/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java b/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java index 3ba4d0bbf09..f3a5d9c377d 100644 --- a/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java +++ b/spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java @@ -219,7 +219,7 @@ public abstract class TestContextAnnotationUtils { * @see #findAnnotationDescriptorForTypes(Class, Class...) */ public static @Nullable AnnotationDescriptor findAnnotationDescriptor( - Class clazz, Class annotationType) { + @Nullable Class clazz, Class annotationType) { Assert.notNull(annotationType, "Annotation type must not be null"); return findAnnotationDescriptor(clazz, annotationType, TestContextAnnotationUtils::searchEnclosingClass,