diff --git a/spring-test/src/main/java/org/springframework/test/context/aot/hint/TestContextRuntimeHints.java b/spring-test/src/main/java/org/springframework/test/context/aot/hint/TestContextRuntimeHints.java index 58f34cc1b8..a3f2c382ff 100644 --- a/spring-test/src/main/java/org/springframework/test/context/aot/hint/TestContextRuntimeHints.java +++ b/spring-test/src/main/java/org/springframework/test/context/aot/hint/TestContextRuntimeHints.java @@ -64,26 +64,20 @@ class TestContextRuntimeHints implements RuntimeHintsRegistrar { } } + // Loaded reflectively in BootstrapUtils registerAnnotation(runtimeHints.reflection(), - // Loaded reflectively in BootstrapUtils org.springframework.test.context.web.WebAppConfiguration.class ); } private static void registerPublicConstructors(ReflectionHints reflectionHints, Class... types) { - registerPublicConstructors(reflectionHints, TypeReference.listOf(types)); - } - - private static void registerPublicConstructors(ReflectionHints reflectionHints, Iterable types) { - reflectionHints.registerTypes(types, TypeHint.builtWith(MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)); + reflectionHints.registerTypes(TypeReference.listOf(types), + TypeHint.builtWith(MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)); } private static void registerDeclaredConstructors(ReflectionHints reflectionHints, String... classNames) { - registerDeclaredConstructors(reflectionHints, listOf(classNames)); - } - - private static void registerDeclaredConstructors(ReflectionHints reflectionHints, Iterable types) { - reflectionHints.registerTypes(types, TypeHint.builtWith(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)); + reflectionHints.registerTypes(listOf(classNames), + TypeHint.builtWith(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)); } private static List listOf(String... classNames) {