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();