Skip to content

Commit 5978737

Browse files
committed
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.
1 parent 2af08cf commit 5978737

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spring-core/src/test/java/org/springframework/core/type/AbstractMethodMetadataTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ public static abstract class WithMetaAnnotation {
286286
}
287287

288288
@Retention(RetentionPolicy.RUNTIME)
289-
// Must be public. See AnnotationAttributesReadingVisitor.recursivelyCollectMetaAnnotations().
290-
public @interface DirectAnnotation {
289+
@interface DirectAnnotation {
291290
}
292291

293292
@DirectAnnotation
@@ -323,8 +322,7 @@ public static abstract class WithMetaAnnotationAttributes {
323322
}
324323

325324
@Retention(RetentionPolicy.RUNTIME)
326-
// Must be public. See AnnotationAttributesReadingVisitor.recursivelyCollectMetaAnnotations().
327-
public @interface AnnotationAttributes {
325+
@interface AnnotationAttributes {
328326

329327
String name();
330328

0 commit comments

Comments
 (0)