mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
6eac141160
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