Skip to content

Commit 4ea4257

Browse files
committed
BeanDefinitionBuilder keeps providing addConstructorArg(Object) for Spring Security 2.x compatibility
Issue: SPR-14123
1 parent 8213df8 commit 4ea4257

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionBuilder.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -166,6 +166,17 @@ public BeanDefinitionBuilder setFactoryMethod(String factoryMethod) {
166166
return this;
167167
}
168168

169+
/**
170+
* Add an indexed constructor arg value. The current index is tracked internally
171+
* and all additions are at the present point.
172+
* @deprecated since Spring 2.5, in favor of {@link #addConstructorArgValue}.
173+
* This variant just remains around for Spring Security 2.x compatibility.
174+
*/
175+
@Deprecated
176+
public BeanDefinitionBuilder addConstructorArg(Object value) {
177+
return addConstructorArgValue(value);
178+
}
179+
169180
/**
170181
* Add an indexed constructor arg value. The current index is tracked internally
171182
* and all additions are at the present point.

0 commit comments

Comments
 (0)