Skip to content

Commit ffd45c0

Browse files
committed
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
1 parent 049eb98 commit ffd45c0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.core.convert.support;
17+
package org.springframework.aot.hint.support;
1818

1919
import java.time.LocalDate;
2020
import java.util.Collections;
@@ -27,8 +27,8 @@
2727
import org.springframework.lang.Nullable;
2828

2929
/**
30-
* {@link RuntimeHintsRegistrar} to register hints for {@link ObjectToObjectConverter}
31-
* popular conventions.
30+
* {@link RuntimeHintsRegistrar} to register hints for popular conventions in
31+
* {@code org.springframework.core.convert.support.ObjectToObjectConverter}.
3232
*
3333
* @author Sebastien Deleuze
3434
* @since 6.0
@@ -44,4 +44,5 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
4444
.withMethod("valueOf", List.of(TypeReference.of(LocalDate.class)), ExecutableMode.INVOKE)
4545
.onReachableType(sqlDateTypeReference));
4646
}
47+
4748
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
org.springframework.aot.hint.RuntimeHintsRegistrar=\
2-
org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHints,\
3-
org.springframework.core.convert.support.ObjectToObjectConverterRuntimeHints
2+
org.springframework.aot.hint.support.ObjectToObjectConverterRuntimeHints,\
3+
org.springframework.aot.hint.support.SpringFactoriesLoaderRuntimeHints
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.core.convert.support;
17+
package org.springframework.aot.hint.support;
1818

1919
import java.time.LocalDate;
2020

0 commit comments

Comments
 (0)