Formal null safety for exception message through String.valueOf
See gh-33117
This commit is contained in:
parent
61894af0bd
commit
61adf2dd25
|
|
@ -853,7 +853,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException ex) {
|
catch (IllegalArgumentException ex) {
|
||||||
throw new BeanDefinitionStoreException(mbd.getResourceDescription(), beanName, ex.getMessage());
|
throw new BeanDefinitionStoreException(mbd.getResourceDescription(), beanName,
|
||||||
|
String.valueOf(ex.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// For instance supplied beans, try the target type and bean class immediately
|
// For instance supplied beans, try the target type and bean class immediately
|
||||||
|
|
|
||||||
|
|
@ -1723,7 +1723,8 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IllegalArgumentException ex) {
|
catch (IllegalArgumentException ex) {
|
||||||
throw new BeanDefinitionStoreException(mbd.getResourceDescription(), beanName, ex.getMessage());
|
throw new BeanDefinitionStoreException(mbd.getResourceDescription(), beanName,
|
||||||
|
String.valueOf(ex.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allowInit && mbd.isSingleton()) {
|
if (allowInit && mbd.isSingleton()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue