Browse Source

Fix nullability in TestContextAnnotationUtils.findAnnotationDescriptor()

pull/35957/head
Sam Brannen 2 weeks ago
parent
commit
a493bd959d
  1. 2
      spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java

2
spring-test/src/main/java/org/springframework/test/context/TestContextAnnotationUtils.java

@ -219,7 +219,7 @@ public abstract class TestContextAnnotationUtils { @@ -219,7 +219,7 @@ public abstract class TestContextAnnotationUtils {
* @see #findAnnotationDescriptorForTypes(Class, Class...)
*/
public static <T extends Annotation> @Nullable AnnotationDescriptor<T> findAnnotationDescriptor(
Class<?> clazz, Class<T> annotationType) {
@Nullable Class<?> clazz, Class<T> annotationType) {
Assert.notNull(annotationType, "Annotation type must not be null");
return findAnnotationDescriptor(clazz, annotationType, TestContextAnnotationUtils::searchEnclosingClass,

Loading…
Cancel
Save