Skip to content

Commit

Permalink
Further simplify DefaultSingletonBeanRegistry.isDependent()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jul 9, 2023
1 parent fb4ad2f commit 502997d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -447,7 +447,7 @@ private boolean isDependent(String beanName, String dependentBeanName, @Nullable
}
String canonicalName = canonicalName(beanName);
Set<String> dependentBeans = this.dependentBeanMap.get(canonicalName);
if (dependentBeans == null) {
if (dependentBeans == null || dependentBeans.isEmpty()) {
return false;
}
if (dependentBeans.contains(dependentBeanName)) {
Expand Down

0 comments on commit 502997d

Please sign in to comment.