directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r895442 - in /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name: LdapDN.java Rdn.java
Date Sun, 03 Jan 2010 16:38:34 GMT
Author: elecharny
Date: Sun Jan  3 16:38:34 2010
New Revision: 895442

URL: http://svn.apache.org/viewvc?rev=895442&view=rev
Log:
o Added a TODO for the LdapDN.toString() method
o Fixed a bug in the Rdn.getNormvalue() method, it was returning the normName for composite
RDNs

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java?rev=895442&r1=895441&r2=895442&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
Sun Jan  3 16:38:34 2010
@@ -423,6 +423,7 @@
      * getNormName method
      *
      * @return A String representing the normalized DN
+     * @TODO : use the getName() method instead
      */
     public String toString()
     {

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java?rev=895442&r1=895441&r2=895442&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
Sun Jan  3 16:38:34 2010
@@ -972,7 +972,7 @@
                 return atav.getNormValue().getString();
 
             default:
-                return ( ( TreeSet<AttributeTypeAndValue> ) atavs ).first().getNormName();
+                return ( ( TreeSet<AttributeTypeAndValue> ) atavs ).first().getNormValue().getString();
         }
     }
 



Mime
View raw message