Move reflection hints for ObjectToObjectConverter conventions to aot.hint.support
Avoids an accidental package cycle between aot and core (only aot->core allowed). See gh-29429
This commit is contained in:
parent
049eb98e00
commit
ffd45c0e7b
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.core.convert.support;
|
package org.springframework.aot.hint.support;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
@ -27,8 +27,8 @@ import org.springframework.aot.hint.TypeReference;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link RuntimeHintsRegistrar} to register hints for {@link ObjectToObjectConverter}
|
* {@link RuntimeHintsRegistrar} to register hints for popular conventions in
|
||||||
* popular conventions.
|
* {@code org.springframework.core.convert.support.ObjectToObjectConverter}.
|
||||||
*
|
*
|
||||||
* @author Sebastien Deleuze
|
* @author Sebastien Deleuze
|
||||||
* @since 6.0
|
* @since 6.0
|
||||||
|
|
@ -44,4 +44,5 @@ class ObjectToObjectConverterRuntimeHints implements RuntimeHintsRegistrar {
|
||||||
.withMethod("valueOf", List.of(TypeReference.of(LocalDate.class)), ExecutableMode.INVOKE)
|
.withMethod("valueOf", List.of(TypeReference.of(LocalDate.class)), ExecutableMode.INVOKE)
|
||||||
.onReachableType(sqlDateTypeReference));
|
.onReachableType(sqlDateTypeReference));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
org.springframework.aot.hint.RuntimeHintsRegistrar=\
|
org.springframework.aot.hint.RuntimeHintsRegistrar=\
|
||||||
org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHints,\
|
org.springframework.aot.hint.support.ObjectToObjectConverterRuntimeHints,\
|
||||||
org.springframework.core.convert.support.ObjectToObjectConverterRuntimeHints
|
org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHints
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.springframework.core.convert.support;
|
package org.springframework.aot.hint.support;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
|
|
||||||
Loading…
Reference in New Issue