Skip to content

Commit 3459105

Browse files
committed
Polishing
1 parent 9df735b commit 3459105

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

framework-docs/modules/ROOT/pages/testing/testcontext-framework/support-classes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ extension API from JUnit Jupiter, which lets Spring provide dependency injection
318318
constructors, test methods, and test lifecycle callback methods.
319319

320320
Specifically, the `SpringExtension` can inject dependencies from the test's
321-
`ApplicationContext` into into test constructors and methods that are annotated with
321+
`ApplicationContext` into test constructors and methods that are annotated with
322322
Spring's `@BeforeTransaction` and `@AfterTransaction` or JUnit's `@BeforeAll`,
323323
`@AfterAll`, `@BeforeEach`, `@AfterEach`, `@Test`, `@RepeatedTest`, `@ParameterizedTest`,
324324
and others.

spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ protected String determineBeanNameFromAnnotation(AnnotatedBeanDefinition annotat
152152
if (conventionBasedStereotypeCheckCache.add(annotationType) &&
153153
metaAnnotationTypes.contains(COMPONENT_ANNOTATION_CLASSNAME) && logger.isWarnEnabled()) {
154154
logger.warn("""
155-
Support for convention-based stereotype names is deprecated and will \
156-
be removed in a future version of the framework. Please annotate the \
157-
'value' attribute in @%s with @AliasFor(annotation=Component.class) \
158-
to declare an explicit alias for @Component's 'value' attribute."""
159-
.formatted(annotationType));
155+
Support for convention-based stereotype names is deprecated and will \
156+
be removed in a future version of the framework. Please annotate the \
157+
'value' attribute in @%s with @AliasFor(annotation=Component.class) \
158+
to declare an explicit alias for @Component's 'value' attribute."""
159+
.formatted(annotationType));
160160
}
161161
if (beanName != null && !currentName.equals(beanName)) {
162162
throw new IllegalStateException("Stereotype annotations suggest inconsistent " +

0 commit comments

Comments
 (0)