Skip to content

Commit 0e70c33

Browse files
committed
Merge branch '2.6.x' into 2.7.x
Closes gh-33066
2 parents 1d838f6 + 3021263 commit 0e70c33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,7 +29,6 @@
2929
import java.util.TreeMap;
3030

3131
import org.springframework.beans.factory.BeanFactory;
32-
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
3332
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
3433
import org.springframework.context.annotation.Condition;
3534
import org.springframework.context.annotation.ConditionContext;
@@ -167,7 +166,7 @@ public ConditionEvaluationReport getParent() {
167166
* @return the {@link ConditionEvaluationReport} or {@code null}
168167
*/
169168
public static ConditionEvaluationReport find(BeanFactory beanFactory) {
170-
if (beanFactory != null && beanFactory instanceof ConfigurableBeanFactory) {
169+
if (beanFactory != null && beanFactory instanceof ConfigurableListableBeanFactory) {
171170
return ConditionEvaluationReport.get((ConfigurableListableBeanFactory) beanFactory);
172171
}
173172
return null;

0 commit comments

Comments
 (0)