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:
Sam Brannen
2019-06-04 15:41:33 +03:00
parent 68333171b6
commit 6eac141160
3 changed files with 73 additions and 197 deletions