@@ -140,7 +140,7 @@ public BeanWrapper autowireConstructor(String beanName, RootBeanDefinition mbd,
140
140
141
141
Constructor <?> constructorToUse = null ;
142
142
ArgumentsHolder argsHolderToUse = null ;
143
- Object [] argsToUse = null ;
143
+ @ Nullable Object [] argsToUse = null ;
144
144
145
145
if (explicitArgs != null ) {
146
146
argsToUse = explicitArgs ;
@@ -227,7 +227,7 @@ public BeanWrapper autowireConstructor(String beanName, RootBeanDefinition mbd,
227
227
Class <?>[] paramTypes = candidate .getParameterTypes ();
228
228
if (resolvedValues != null ) {
229
229
try {
230
- String [] paramNames = null ;
230
+ @ Nullable String [] paramNames = null ;
231
231
if (resolvedValues .containsNamedArgument ()) {
232
232
paramNames = ConstructorPropertiesChecker .evaluate (candidate , parameterCount );
233
233
if (paramNames == null ) {
@@ -437,7 +437,7 @@ public BeanWrapper instantiateUsingFactoryMethod(
437
437
argsToUse = explicitArgs ;
438
438
}
439
439
else {
440
- Object [] argsToResolve = null ;
440
+ @ Nullable Object [] argsToResolve = null ;
441
441
synchronized (mbd .constructorArgumentLock ) {
442
442
factoryMethodToUse = (Method ) mbd .resolvedConstructorOrFactoryMethod ;
443
443
if (factoryMethodToUse != null && mbd .constructorArgumentsResolved ) {
@@ -536,7 +536,7 @@ public BeanWrapper instantiateUsingFactoryMethod(
536
536
else {
537
537
// Resolved constructor arguments: type conversion and/or autowiring necessary.
538
538
try {
539
- String [] paramNames = null ;
539
+ @ Nullable String [] paramNames = null ;
540
540
if (resolvedValues != null && resolvedValues .containsNamedArgument ()) {
541
541
ParameterNameDiscoverer pnd = this .beanFactory .getParameterNameDiscoverer ();
542
542
if (pnd != null ) {
@@ -719,7 +719,7 @@ private int resolveConstructorArguments(String beanName, RootBeanDefinition mbd,
719
719
*/
720
720
private ArgumentsHolder createArgumentArray (
721
721
String beanName , RootBeanDefinition mbd , @ Nullable ConstructorArgumentValues resolvedValues ,
722
- BeanWrapper bw , Class <?>[] paramTypes , String @ Nullable [] paramNames , Executable executable ,
722
+ BeanWrapper bw , Class <?>[] paramTypes , @ Nullable String @ Nullable [] paramNames , Executable executable ,
723
723
boolean autowiring , boolean fallback ) throws UnsatisfiedDependencyException {
724
724
725
725
TypeConverter customConverter = this .beanFactory .getCustomTypeConverter ();
0 commit comments