Mark Paluch opened SPR-15841 and commented
BeanDefinitionBuilder declares setInitMethodName, setDestroyMethodName and setScope methods that do not accept @Nullable arguments.
Forwarding values from a given BeanDefinition requires warning suppression or additional code to satisfy null checks:
class CassandraCqlClusterParser extends AbstractBeanDefinitionParser {
@Override
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
BeanDefinitionBuilder builder = …;
if (parserContext.isNested()) {
// warning is raised in the next line
builder.setScope(parserContext.getContainingBeanDefinition().getScope());
}
return …;
}
}
Affects: 5.0 RC3
Issue Links:
Referenced from: commits 09f5c71
Mark Paluch opened SPR-15841 and commented
BeanDefinitionBuilderdeclaressetInitMethodName,setDestroyMethodNameandsetScopemethods that do not accept@Nullablearguments.Forwarding values from a given
BeanDefinitionrequires warning suppression or additional code to satisfy null checks:Affects: 5.0 RC3
Issue Links:
Referenced from: commits 09f5c71