Restore non-null check for requiredType in BeanFactory methods
Beginning with Spring Framework 5.0, non-null checks for the requiredType in the following methods were inadvertently removed with the internal switch to ResolvableType.forRawClass(requiredType). - BeanFactory.getBean(Class<T>, Object...) - BeanFactory.getBeanProvider(Class<T>) - AutowireCapableBeanFactory.resolveNamedBean(Class<T>) This commit restores those non-null checks. Closes gh-23045
This commit is contained in:
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user