Merge branch '6.2.x'
This commit is contained in:
commit
45ba4ace39
|
@ -2211,7 +2211,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
||||||
* i.e. whether the candidate points back to the original bean or to a factory method
|
* i.e. whether the candidate points back to the original bean or to a factory method
|
||||||
* on the original bean.
|
* on the original bean.
|
||||||
*/
|
*/
|
||||||
@Contract("null, _ -> false;_, null -> false;")
|
@Contract("null, _ -> false; _, null -> false;")
|
||||||
private boolean isSelfReference(@Nullable String beanName, @Nullable String candidateName) {
|
private boolean isSelfReference(@Nullable String beanName, @Nullable String candidateName) {
|
||||||
return (beanName != null && candidateName != null &&
|
return (beanName != null && candidateName != null &&
|
||||||
(beanName.equals(candidateName) || (containsBeanDefinition(candidateName) &&
|
(beanName.equals(candidateName) || (containsBeanDefinition(candidateName) &&
|
||||||
|
|
Loading…
Reference in New Issue