Update Javadoc for @⁠Mockito[Spy]Bean to reflect current semantics

This commit is contained in:
Sam Brannen 2024-10-10 12:19:36 +02:00
parent f7e32a9c78
commit 1b8f2c46c1
2 changed files with 5 additions and 3 deletions

View File

@ -69,7 +69,8 @@ public @interface MockitoBean {
/**
* The name of the bean to register or replace.
* <p>If left unspecified, the bean to override is selected according to
* the annotated field's type.
* the annotated field's type, taking qualifiers into account if necessary.
* See the {@linkplain MockitoBean class-level documentation} for details.
* @return the name of the mocked bean
*/
String name() default "";

View File

@ -58,8 +58,9 @@ public @interface MockitoSpyBean {
/**
* The name of the bean to spy.
* <p>If left unspecified, the bean to override is selected according to
* the annotated field's type.
* <p>If left unspecified, the bean to spy is selected according to
* the annotated field's type, taking qualifiers into account if necessary.
* See the {@linkplain MockitoSpyBean class-level documentation} for details.
* @return the name of the spied bean
*/
String name() default "";