directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1024139 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RDN.java
Date Tue, 19 Oct 2010 07:03:21 GMT
Author: seelmann
Date: Tue Oct 19 07:03:20 2010
New Revision: 1024139

URL: http://svn.apache.org/viewvc?rev=1024139&view=rev
Log:
Removed code duplication

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RDN.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RDN.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RDN.java?rev=1024139&r1=1024138&r2=1024139&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RDN.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RDN.java
Tue Oct 19 07:03:20 2010
@@ -506,13 +506,7 @@ public class RDN implements Cloneable, C
      */
     public RDN normalize( SchemaManager sm ) throws LdapInvalidDnException
     {
-        String savedUpName = getName();
-        DN.rdnOidToName( this, sm.getNormalizerMapping() );
-        normalize();
-        this.upName = savedUpName;
-        normalized = true;
-
-        return this;
+        return normalize( sm.getNormalizerMapping() );
     }
 
 



Mime
View raw message