Skip to content

Commit c5d1781

Browse files
committed
Merge branch '2.1.x'
Closes gh-17793
2 parents c724710 + d0d6529 commit c5d1781

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ protected final MatchResult getMatchingBeans(ConditionContext context, Spec<?> s
156156
Set<Class<?>> parameterizedContainers = spec.getParameterizedContainers();
157157
if (spec.getStrategy() == SearchStrategy.ANCESTORS) {
158158
BeanFactory parent = beanFactory.getParentBeanFactory();
159-
Assert.isInstanceOf(ConfigurableListableBeanFactory.class, parent, "Unable to use SearchStrategy.PARENTS");
159+
Assert.isInstanceOf(ConfigurableListableBeanFactory.class, parent,
160+
"Unable to use SearchStrategy.ANCESTORS");
160161
beanFactory = (ConfigurableListableBeanFactory) parent;
161162
}
162163
MatchResult result = new MatchResult();

0 commit comments

Comments
 (0)