Closed
Description
in spring5.3.10 version
A public method is provided in the AbstractBeanDefinitionReader
class,
public final BeanDefinitionRegistry getBeanFactory() {
return this.registry;
}
This method does not have any notes, and the type returned is a BeanDefinitionRegistry
, but the method name is getBeanFactory
. However, BeanDefinitionRegistry
doesn't extends BeanFactory
, so naming it is easy to mislead everyone, getRegistry()
method has been provided,
So I think the getBeanFactory
method should be removed.