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 85eec5d commit 6ea4d37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 6ea4d37

Please sign in to comment.