Skip to content

Commit 89b53cf

Browse files
author
Phillip Webb
committed
Javadoc that @conditionals are not inherited
Issue: SPR-10840
1 parent ced5ea2 commit 89b53cf

File tree

1 file changed

+3
-0
lines changed
  • spring-context/src/main/java/org/springframework/context/annotation

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
* {@code @Bean} methods and {@link Import @Import} annotations associated with that class
4242
* will be subject to the conditions.
4343
*
44+
* <p>NOTE: {@code @Conditional} annotations are not inherited, any conditions from
45+
* super-classes or from overridden methods are not considered.
46+
*
4447
* @author Phillip Webb
4548
* @since 4.0
4649
* @see Condition

0 commit comments

Comments
 (0)