From 0819e34ab6960b3a18fb85714dedec01363cb9c2 Mon Sep 17 00:00:00 2001 From: Mattias Arthursson Date: Mon, 17 Nov 2008 14:08:48 +0000 Subject: [PATCH] Deprecated setKey and setValue methods in LdapRdnComponent --- .../java/org/springframework/ldap/core/LdapRdnComponent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/org/springframework/ldap/core/LdapRdnComponent.java b/core/src/main/java/org/springframework/ldap/core/LdapRdnComponent.java index e7782d45..cdd71ced 100644 --- a/core/src/main/java/org/springframework/ldap/core/LdapRdnComponent.java +++ b/core/src/main/java/org/springframework/ldap/core/LdapRdnComponent.java @@ -84,6 +84,8 @@ public class LdapRdnComponent implements Comparable, Serializable { * Set the key (Attribute name) of this component. * * @param key the key. + * @deprecated Using this method changes the internal state of surrounding + * DistinguishedName instance. This should be avoided. */ public void setKey(String key) { this.key = key; @@ -102,6 +104,8 @@ public class LdapRdnComponent implements Comparable, Serializable { * Set the (Attribute) value of this component. * * @param value the value. + * @deprecated Using this method changes the internal state of surrounding + * DistinguishedName instance. This should be avoided. */ public void setValue(String value) { this.value = value;