|
|
|
|
@ -2297,7 +2297,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
@@ -2297,7 +2297,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@SuppressWarnings("rawtypes") |
|
|
|
|
@SuppressWarnings({ "rawtypes", "unchecked" }) |
|
|
|
|
void genericsBasedConstructorInjectionWithNonTypedTarget() { |
|
|
|
|
RootBeanDefinition bd = new RootBeanDefinition(RepositoryConstructorInjectionBean.class); |
|
|
|
|
bd.setScope(BeanDefinition.SCOPE_PROTOTYPE); |
|
|
|
|
@ -2321,6 +2321,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
@@ -2321,6 +2321,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
|
void genericsBasedConstructorInjectionWithNonGenericTarget() { |
|
|
|
|
RootBeanDefinition bd = new RootBeanDefinition(RepositoryConstructorInjectionBean.class); |
|
|
|
|
bd.setScope(BeanDefinition.SCOPE_PROTOTYPE); |
|
|
|
|
@ -2344,7 +2345,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
@@ -2344,7 +2345,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@SuppressWarnings("rawtypes") |
|
|
|
|
@SuppressWarnings({ "rawtypes", "unchecked" }) |
|
|
|
|
void genericsBasedConstructorInjectionWithMixedTargets() { |
|
|
|
|
RootBeanDefinition bd = new RootBeanDefinition(RepositoryConstructorInjectionBean.class); |
|
|
|
|
bd.setScope(BeanDefinition.SCOPE_PROTOTYPE); |
|
|
|
|
@ -2370,6 +2371,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
@@ -2370,6 +2371,7 @@ class AutowiredAnnotationBeanPostProcessorTests {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
|
void genericsBasedConstructorInjectionWithMixedTargetsIncludingNonGeneric() { |
|
|
|
|
RootBeanDefinition bd = new RootBeanDefinition(RepositoryConstructorInjectionBean.class); |
|
|
|
|
bd.setScope(BeanDefinition.SCOPE_PROTOTYPE); |
|
|
|
|
|