Skip to content

Commit d0d6529

Browse files
committed
Merge pull request #17774 from chenqimiao
* pr/17774: Fix typo in assertion Closes gh-17774
2 parents 766b6c3 + 77931a0 commit d0d6529

File tree

1 file changed

+2
-1
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnBeanCondition.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ protected final MatchResult getMatchingBeans(ConditionContext context, BeanSearc
158158
ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
159159
if (beans.getStrategy() == SearchStrategy.ANCESTORS) {
160160
BeanFactory parent = beanFactory.getParentBeanFactory();
161-
Assert.isInstanceOf(ConfigurableListableBeanFactory.class, parent, "Unable to use SearchStrategy.PARENTS");
161+
Assert.isInstanceOf(ConfigurableListableBeanFactory.class, parent,
162+
"Unable to use SearchStrategy.ANCESTORS");
162163
beanFactory = (ConfigurableListableBeanFactory) parent;
163164
}
164165
MatchResult matchResult = new MatchResult();

0 commit comments

Comments
 (0)