mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix nullability in TestContextAnnotationUtils.findAnnotationDescriptor()
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user