From 439bcd67156277fcc05a75b5731572beb5523ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Fri, 9 Jun 2023 15:19:42 +0200 Subject: [PATCH] Polishing --- .../org/springframework/beans/BeanUtilsRuntimeHintsTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-beans/src/test/java/org/springframework/beans/BeanUtilsRuntimeHintsTests.java b/spring-beans/src/test/java/org/springframework/beans/BeanUtilsRuntimeHintsTests.java index af3e8da403..acd3cb6836 100644 --- a/spring-beans/src/test/java/org/springframework/beans/BeanUtilsRuntimeHintsTests.java +++ b/spring-beans/src/test/java/org/springframework/beans/BeanUtilsRuntimeHintsTests.java @@ -22,10 +22,10 @@ import org.junit.jupiter.api.Test; import org.springframework.aot.hint.MemberCategory; import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.RuntimeHintsRegistrar; -import org.springframework.aot.hint.TypeReference; import org.springframework.aot.hint.predicate.RuntimeHintsPredicates; import org.springframework.core.io.ResourceEditor; import org.springframework.core.io.support.SpringFactoriesLoader; +import org.springframework.http.MediaTypeEditor; import org.springframework.util.ClassUtils; import static org.assertj.core.api.Assertions.assertThat; @@ -49,7 +49,7 @@ class BeanUtilsRuntimeHintsTests { @Test void mediaTypeEditorHasHints() { - assertThat(RuntimeHintsPredicates.reflection().onType(TypeReference.of("org.springframework.http.MediaTypeEditor")) + assertThat(RuntimeHintsPredicates.reflection().onType(MediaTypeEditor.class) .withMemberCategories(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints); }