@@ -194,7 +194,7 @@ public BeanDefinitionBuilder setFactoryMethodOnBean(String factoryMethod, String
194
194
* Add an indexed constructor arg value. The current index is tracked internally
195
195
* and all additions are at the present point.
196
196
*/
197
- public BeanDefinitionBuilder addConstructorArgValue (Object value ) {
197
+ public BeanDefinitionBuilder addConstructorArgValue (@ Nullable Object value ) {
198
198
this .beanDefinition .getConstructorArgumentValues ().addIndexedArgumentValue (
199
199
this .constructorArgIndex ++, value );
200
200
return this ;
@@ -213,7 +213,7 @@ public BeanDefinitionBuilder addConstructorArgReference(String beanName) {
213
213
/**
214
214
* Add the supplied property value under the given name.
215
215
*/
216
- public BeanDefinitionBuilder addPropertyValue (String name , Object value ) {
216
+ public BeanDefinitionBuilder addPropertyValue (String name , @ Nullable Object value ) {
217
217
this .beanDefinition .getPropertyValues ().add (name , value );
218
218
return this ;
219
219
}
@@ -231,15 +231,15 @@ public BeanDefinitionBuilder addPropertyReference(String name, String beanName)
231
231
/**
232
232
* Set the init method for this definition.
233
233
*/
234
- public BeanDefinitionBuilder setInitMethodName (String methodName ) {
234
+ public BeanDefinitionBuilder setInitMethodName (@ Nullable String methodName ) {
235
235
this .beanDefinition .setInitMethodName (methodName );
236
236
return this ;
237
237
}
238
238
239
239
/**
240
240
* Set the destroy method for this definition.
241
241
*/
242
- public BeanDefinitionBuilder setDestroyMethodName (String methodName ) {
242
+ public BeanDefinitionBuilder setDestroyMethodName (@ Nullable String methodName ) {
243
243
this .beanDefinition .setDestroyMethodName (methodName );
244
244
return this ;
245
245
}
@@ -250,7 +250,7 @@ public BeanDefinitionBuilder setDestroyMethodName(String methodName) {
250
250
* @see org.springframework.beans.factory.config.BeanDefinition#SCOPE_SINGLETON
251
251
* @see org.springframework.beans.factory.config.BeanDefinition#SCOPE_PROTOTYPE
252
252
*/
253
- public BeanDefinitionBuilder setScope (String scope ) {
253
+ public BeanDefinitionBuilder setScope (@ Nullable String scope ) {
254
254
this .beanDefinition .setScope (scope );
255
255
return this ;
256
256
}
0 commit comments