diff --git a/spring-core/src/main/java/org/springframework/core/convert/support/ObjectToObjectConverterRuntimeHints.java b/spring-core/src/main/java/org/springframework/aot/hint/support/ObjectToObjectConverterRuntimeHints.java similarity index 88% rename from spring-core/src/main/java/org/springframework/core/convert/support/ObjectToObjectConverterRuntimeHints.java rename to spring-core/src/main/java/org/springframework/aot/hint/support/ObjectToObjectConverterRuntimeHints.java index 1eae9ab133e..51d063c8b82 100644 --- a/spring-core/src/main/java/org/springframework/core/convert/support/ObjectToObjectConverterRuntimeHints.java +++ b/spring-core/src/main/java/org/springframework/aot/hint/support/ObjectToObjectConverterRuntimeHints.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.convert.support; +package org.springframework.aot.hint.support; import java.time.LocalDate; import java.util.Collections; @@ -27,8 +27,8 @@ import org.springframework.aot.hint.TypeReference; import org.springframework.lang.Nullable; /** - * {@link RuntimeHintsRegistrar} to register hints for {@link ObjectToObjectConverter} - * popular conventions. + * {@link RuntimeHintsRegistrar} to register hints for popular conventions in + * {@code org.springframework.core.convert.support.ObjectToObjectConverter}. * * @author Sebastien Deleuze * @since 6.0 @@ -44,4 +44,5 @@ class ObjectToObjectConverterRuntimeHints implements RuntimeHintsRegistrar { .withMethod("valueOf", List.of(TypeReference.of(LocalDate.class)), ExecutableMode.INVOKE) .onReachableType(sqlDateTypeReference)); } + } diff --git a/spring-core/src/main/resources/META-INF/spring/aot.factories b/spring-core/src/main/resources/META-INF/spring/aot.factories index 776f4c8c734..9d735f3b424 100644 --- a/spring-core/src/main/resources/META-INF/spring/aot.factories +++ b/spring-core/src/main/resources/META-INF/spring/aot.factories @@ -1,3 +1,3 @@ org.springframework.aot.hint.RuntimeHintsRegistrar=\ -org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHints,\ -org.springframework.core.convert.support.ObjectToObjectConverterRuntimeHints +org.springframework.aot.hint.support.ObjectToObjectConverterRuntimeHints,\ +org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHints diff --git a/spring-core/src/test/java/org/springframework/core/convert/support/ObjectToObjectConverterRuntimeHintsTests.java b/spring-core/src/test/java/org/springframework/aot/hint/support/ObjectToObjectConverterRuntimeHintsTests.java similarity index 97% rename from spring-core/src/test/java/org/springframework/core/convert/support/ObjectToObjectConverterRuntimeHintsTests.java rename to spring-core/src/test/java/org/springframework/aot/hint/support/ObjectToObjectConverterRuntimeHintsTests.java index d3889a15149..6cea9b055ba 100644 --- a/spring-core/src/test/java/org/springframework/core/convert/support/ObjectToObjectConverterRuntimeHintsTests.java +++ b/spring-core/src/test/java/org/springframework/aot/hint/support/ObjectToObjectConverterRuntimeHintsTests.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.core.convert.support; +package org.springframework.aot.hint.support; import java.time.LocalDate;