From 597873746cba37dbf4831669b6599697003af814 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 9 Jul 2022 16:50:24 +0200 Subject: [PATCH] Update test annotations due to removal of AnnotationAttributesReadingVisitor Annotations are no longer required to be public when looked up via ASM since 6.0 M1. --- .../core/type/AbstractMethodMetadataTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-core/src/test/java/org/springframework/core/type/AbstractMethodMetadataTests.java b/spring-core/src/test/java/org/springframework/core/type/AbstractMethodMetadataTests.java index b84c16b195..e728a95073 100644 --- a/spring-core/src/test/java/org/springframework/core/type/AbstractMethodMetadataTests.java +++ b/spring-core/src/test/java/org/springframework/core/type/AbstractMethodMetadataTests.java @@ -286,8 +286,7 @@ public abstract class AbstractMethodMetadataTests { } @Retention(RetentionPolicy.RUNTIME) - // Must be public. See AnnotationAttributesReadingVisitor.recursivelyCollectMetaAnnotations(). - public @interface DirectAnnotation { + @interface DirectAnnotation { } @DirectAnnotation @@ -323,8 +322,7 @@ public abstract class AbstractMethodMetadataTests { } @Retention(RetentionPolicy.RUNTIME) - // Must be public. See AnnotationAttributesReadingVisitor.recursivelyCollectMetaAnnotations(). - public @interface AnnotationAttributes { + @interface AnnotationAttributes { String name();