removed formal deprecation from addPropertyValue; just hinting at add now

This commit is contained in:
Juergen Hoeller 2009-11-20 14:28:38 +00:00
parent 2cb6e21161
commit 4024b67926
1 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ import org.springframework.util.StringUtils;
*/ */
public class MutablePropertyValues implements PropertyValues, Serializable { public class MutablePropertyValues implements PropertyValues, Serializable {
/** List of PropertyValue objects */
private final List<PropertyValue> propertyValueList; private final List<PropertyValue> propertyValueList;
private Set<String> processedProperties; private Set<String> processedProperties;
@ -179,12 +178,12 @@ public class MutablePropertyValues implements PropertyValues, Serializable {
/** /**
* Overloaded version of <code>addPropertyValue</code> that takes * Overloaded version of <code>addPropertyValue</code> that takes
* a property name and a property value. * a property name and a property value.
* <p>Note: As of Spring 3.0, we recommend using the more concise
* and chaining-capable variant {@link #add}.
* @param propertyName name of the property * @param propertyName name of the property
* @param propertyValue value of the property * @param propertyValue value of the property
* @see #addPropertyValue(PropertyValue) * @see #addPropertyValue(PropertyValue)
* @deprecated as of Spring 3.0, in favor of the chaining-capable {@link #add}
*/ */
@Deprecated
public void addPropertyValue(String propertyName, Object propertyValue) { public void addPropertyValue(String propertyName, Object propertyValue) {
addPropertyValue(new PropertyValue(propertyName, propertyValue)); addPropertyValue(new PropertyValue(propertyName, propertyValue));
} }