Browse Source

Fix compilation error in test

pull/33211/head
Sam Brannen 2 years ago
parent
commit
8fe545edcd
  1. 4
      spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsRepeatableAnnotationTests.java

4
spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsRepeatableAnnotationTests.java

@ -246,7 +246,7 @@ class MergedAnnotationsRepeatableAnnotationTests {
Class<?> clazz = StandardRepeatablesWithContainerWithMultipleAttributesTestCase.class; Class<?> clazz = StandardRepeatablesWithContainerWithMultipleAttributesTestCase.class;
// NO RepeatableContainers // NO RepeatableContainers
MergedAnnotations mergedAnnotations = MergedAnnotations.from(clazz, TYPE_HIERARCHY, RepeatableContainers.none()); MergedAnnotations mergedAnnotations = MergedAnnotations.from(clazz, SearchStrategy.TYPE_HIERARCHY, RepeatableContainers.none());
ContainerWithMultipleAttributes container = mergedAnnotations ContainerWithMultipleAttributes container = mergedAnnotations
.get(ContainerWithMultipleAttributes.class) .get(ContainerWithMultipleAttributes.class)
.synthesize(MergedAnnotation::isPresent).orElse(null); .synthesize(MergedAnnotation::isPresent).orElse(null);
@ -263,7 +263,7 @@ class MergedAnnotationsRepeatableAnnotationTests {
.containsExactly("C"); .containsExactly("C");
// Standard RepeatableContainers // Standard RepeatableContainers
mergedAnnotations = MergedAnnotations.from(clazz, TYPE_HIERARCHY, RepeatableContainers.standardRepeatables()); mergedAnnotations = MergedAnnotations.from(clazz, SearchStrategy.TYPE_HIERARCHY, RepeatableContainers.standardRepeatables());
container = mergedAnnotations container = mergedAnnotations
.get(ContainerWithMultipleAttributes.class) .get(ContainerWithMultipleAttributes.class)
.synthesize(MergedAnnotation::isPresent).orElse(null); .synthesize(MergedAnnotation::isPresent).orElse(null);

Loading…
Cancel
Save