Skip to content

Commit 63daa7a

Browse files
committed
Merge branch '6.2.x'
2 parents 343f613 + 470bf3b commit 63daa7a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

spring-test/src/main/java/org/springframework/test/context/bean/override/BeanOverrideHandler.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ public abstract class BeanOverrideHandler {
8989
private final BeanOverrideStrategy strategy;
9090

9191

92+
/**
93+
* Construct a new {@code BeanOverrideHandler} from the supplied values.
94+
* @param field the {@link Field} annotated with {@link BeanOverride @BeanOverride},
95+
* or {@code null} if {@code @BeanOverride} was declared at the type level
96+
* @param beanType the {@linkplain ResolvableType type} of bean to override
97+
* @param beanName the name of the bean to override, or {@code null} to look
98+
* for a single matching bean by type
99+
* @param strategy the {@link BeanOverrideStrategy} to use
100+
*/
92101
protected BeanOverrideHandler(@Nullable Field field, ResolvableType beanType, @Nullable String beanName,
93102
BeanOverrideStrategy strategy) {
94103

@@ -214,7 +223,7 @@ private static void processElement(AnnotatedElement element, Class<?> testClass,
214223

215224

216225
/**
217-
* Get the annotated {@link Field}.
226+
* Get the {@link Field} annotated with {@link BeanOverride @BeanOverride}.
218227
*/
219228
public final @Nullable Field getField() {
220229
return this.field;

0 commit comments

Comments
 (0)