mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:30:28 +00:00
Avoid passing null as argument marked as non-nullable
Closes gh-35933 Signed-off-by: jnizet <jb@ninja-squad.com>
This commit is contained in:
committed by
Sébastien Deleuze
parent
ace2b2bac9
commit
1603045c7d
+1
-1
@@ -75,7 +75,7 @@ class MockitoSpyBeanWithGenericsOnTestFieldForExistingGenericBeanProducedByFacto
|
||||
|
||||
RootBeanDefinition definition = new RootBeanDefinition(ExampleGenericServiceFactoryBean.class);
|
||||
ResolvableType targetType = ResolvableType.forClassWithGenerics(
|
||||
ExampleGenericServiceFactoryBean.class, null, ExampleGenericService.class);
|
||||
ExampleGenericServiceFactoryBean.class, Object.class, ExampleGenericService.class);
|
||||
definition.setTargetType(targetType);
|
||||
registry.registerBeanDefinition("exampleService", definition);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user