Skip to content

Commit aaffb8b

Browse files
committed
Move BindingReflectionHintsRegistrar to spring-core
See gh-28979
1 parent 6475523 commit aaffb8b

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

spring-context/spring-context.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
description = "Spring Context"
22

33
apply plugin: "kotlin"
4-
apply plugin: "kotlinx-serialization"
54

65
dependencies {
76
api(project(":spring-aop"))
@@ -33,7 +32,6 @@ dependencies {
3332
testImplementation("org.apache.commons:commons-pool2")
3433
testImplementation("org.awaitility:awaitility")
3534
testImplementation("jakarta.inject:jakarta.inject-tck")
36-
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json")
3735
testRuntimeOnly("jakarta.xml.bind:jakarta.xml.bind-api")
3836
testRuntimeOnly("org.glassfish:jakarta.el")
3937
// Substitute for javax.management:jmxremote_optional:1.0.1_04 (not available on Maven Central)

spring-core/spring-core.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import org.springframework.build.shadow.ShadowSource
44
description = "Spring Core"
55

66
apply plugin: "kotlin"
7+
apply plugin: "kotlinx-serialization"
78

89
def javapoetVersion = "1.13.0"
910
def objenesisVersion = "3.2"
@@ -90,6 +91,7 @@ dependencies {
9091
testFixturesImplementation("org.assertj:assertj-core")
9192
testFixturesImplementation("org.xmlunit:xmlunit-assertj")
9293
testFixturesImplementation("io.projectreactor:reactor-test")
94+
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json")
9395
}
9496

9597
jar {

spring-context/src/main/java/org/springframework/context/aot/BindingReflectionHintsRegistrar.java renamed to spring-core/src/main/java/org/springframework/aot/hint/annotation/BindingReflectionHintsRegistrar.java

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

17-
package org.springframework.context.aot;
17+
package org.springframework.aot.hint.annotation;
1818

1919
import java.beans.BeanInfo;
2020
import java.beans.IntrospectionException;
@@ -40,10 +40,10 @@
4040

4141
/**
4242
* Register the necessary reflection hints so that the specified type can be
43-
* bound at runtime. Fields, constructors and property methods are registered,
44-
* except for a set of types like those in the {@code java.} package where just
45-
* the type is registered. Types are discovered transitively and generic types
46-
* are registered as well.
43+
* bound at runtime. Fields, constructors, properties and record components
44+
* are registered, except for a set of types like those in the {@code java.}
45+
* package where just the type is registered.
46+
* Types are discovered transitively and generic type are registered as well.
4747
*
4848
* @author Sebastien Deleuze
4949
* @since 6.0

spring-context/src/test/java/org/springframework/context/aot/BindingReflectionHintsRegistrarTests.java renamed to spring-core/src/test/java/org/springframework/aot/hint/annotation/BindingReflectionHintsRegistrarTests.java

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.context.aot;
17+
package org.springframework.aot.hint.annotation;
1818

1919
import java.lang.reflect.Type;
2020
import java.util.List;
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.context.aot
17+
package org.springframework.aot.hint.annotation
1818

1919
import org.assertj.core.api.Assertions.assertThat
2020
import org.assertj.core.api.ThrowingConsumer

spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/MessageMappingReflectiveProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
import org.springframework.aot.hint.ExecutableMode;
2626
import org.springframework.aot.hint.ReflectionHints;
27+
import org.springframework.aot.hint.annotation.BindingReflectionHintsRegistrar;
2728
import org.springframework.aot.hint.annotation.ReflectiveProcessor;
28-
import org.springframework.context.aot.BindingReflectionHintsRegistrar;
2929
import org.springframework.core.MethodParameter;
3030
import org.springframework.lang.Nullable;
3131
import org.springframework.messaging.Message;

spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMappingReflectiveProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
import org.springframework.aot.hint.ExecutableMode;
2525
import org.springframework.aot.hint.ReflectionHints;
26+
import org.springframework.aot.hint.annotation.BindingReflectionHintsRegistrar;
2627
import org.springframework.aot.hint.annotation.ReflectiveProcessor;
27-
import org.springframework.context.aot.BindingReflectionHintsRegistrar;
2828
import org.springframework.core.MethodParameter;
2929
import org.springframework.core.annotation.AnnotatedElementUtils;
3030
import org.springframework.http.HttpEntity;

0 commit comments

Comments
 (0)