Merge branch '3.5.x'

This commit is contained in:
Phillip Webb
2025-10-14 14:20:22 -07:00
@@ -279,10 +279,10 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
private boolean isCandidate(ConfigurableListableBeanFactory beanFactory, String name,
@Nullable BeanDefinition definition, Set<String> ignoredBeans) {
if (ignoredBeans.contains(name) || definition == null) {
if (ignoredBeans.contains(name)) {
return false;
}
if (definition.isAutowireCandidate() && isDefaultCandidate(definition)) {
if (definition == null || (definition.isAutowireCandidate() && isDefaultCandidate(definition))) {
return true;
}
if (ScopedProxyUtils.isScopedTarget(name)) {