From 8fe545edcd91c115b3758b0d78b7d3247e2e18a0 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Fri, 3 May 2024 12:37:42 +0300 Subject: [PATCH] Fix compilation error in test --- .../MergedAnnotationsRepeatableAnnotationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsRepeatableAnnotationTests.java b/spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsRepeatableAnnotationTests.java index f1a80ee56e73..d3391ec35eb4 100644 --- a/spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsRepeatableAnnotationTests.java +++ b/spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsRepeatableAnnotationTests.java @@ -246,7 +246,7 @@ void searchFindsRepeatableContainerAnnotationAndRepeatedAnnotations() { Class clazz = StandardRepeatablesWithContainerWithMultipleAttributesTestCase.class; // NO RepeatableContainers - MergedAnnotations mergedAnnotations = MergedAnnotations.from(clazz, TYPE_HIERARCHY, RepeatableContainers.none()); + MergedAnnotations mergedAnnotations = MergedAnnotations.from(clazz, SearchStrategy.TYPE_HIERARCHY, RepeatableContainers.none()); ContainerWithMultipleAttributes container = mergedAnnotations .get(ContainerWithMultipleAttributes.class) .synthesize(MergedAnnotation::isPresent).orElse(null); @@ -263,7 +263,7 @@ void searchFindsRepeatableContainerAnnotationAndRepeatedAnnotations() { .containsExactly("C"); // Standard RepeatableContainers - mergedAnnotations = MergedAnnotations.from(clazz, TYPE_HIERARCHY, RepeatableContainers.standardRepeatables()); + mergedAnnotations = MergedAnnotations.from(clazz, SearchStrategy.TYPE_HIERARCHY, RepeatableContainers.standardRepeatables()); container = mergedAnnotations .get(ContainerWithMultipleAttributes.class) .synthesize(MergedAnnotation::isPresent).orElse(null);