From 687bc7652d79223023218b6733f5af7dd8a082ff Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Sat, 18 Oct 2025 13:35:54 +0200 Subject: [PATCH] Avoid unnecessary import for SpringExtension's Javadoc --- .../test/context/junit/jupiter/SpringExtension.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java b/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java index 70767877378..2ab111d49d6 100644 --- a/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java +++ b/spring-test/src/main/java/org/springframework/test/context/junit/jupiter/SpringExtension.java @@ -52,7 +52,6 @@ import org.springframework.core.annotation.MergedAnnotations; import org.springframework.core.annotation.MergedAnnotations.SearchStrategy; import org.springframework.core.annotation.RepeatableContainers; import org.springframework.test.context.MethodInvoker; -import org.springframework.test.context.TestConstructor; import org.springframework.test.context.TestContextAnnotationUtils; import org.springframework.test.context.TestContextManager; import org.springframework.test.context.event.ApplicationEvents; @@ -291,7 +290,8 @@ public class SpringExtension implements BeforeAllCallback, AfterAllCallback, Tes *
  • {@link ParameterResolutionDelegate#isAutowirable} returns {@code true}.
  • * *

    WARNING: If a test class {@code Constructor} is annotated - * with {@code @Autowired} or automatically autowirable (see {@link TestConstructor}), + * with {@code @Autowired} or automatically autowirable (see + * {@link org.springframework.test.context.TestConstructor @TestConstructor}), * Spring will assume the responsibility for resolving all parameters in the * constructor. Consequently, no other registered {@link ParameterResolver} * will be able to resolve parameters.