Consistent use of @AliasFor
Closes gh-10836
This commit is contained in:
@@ -24,6 +24,7 @@ import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.boot.context.TypeExcludeFilter;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
@@ -50,6 +51,7 @@ public @interface TestComponent {
|
||||
* a Spring bean in case of an auto-detected component.
|
||||
* @return the specified bean name, if any
|
||||
*/
|
||||
@AliasFor(annotation = Component.class)
|
||||
String value() default "";
|
||||
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.boot.SpringBootConfiguration;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
|
||||
/**
|
||||
* {@link Configuration @Configuration} that can be used to define additional beans or
|
||||
@@ -47,6 +48,7 @@ public @interface TestConfiguration {
|
||||
* Configuration class. See {@link Configuration#value()} for details.
|
||||
* @return the specified bean name, if any
|
||||
*/
|
||||
@AliasFor(annotation = Configuration.class)
|
||||
String value() default "";
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user