directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r357574 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java
Date Sun, 18 Dec 2005 23:58:49 GMT
Author: elecharny
Date: Sun Dec 18 15:58:45 2005
New Revision: 357574

URL: http://svn.apache.org/viewcvs?rev=357574&view=rev
Log:
- Called the parseInternal() method which is static
- fixed a bug : the get() call returned a String, but we have to get a ATAV. 
So we don't call get() anymore

Modified:
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java

Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java?rev=357574&r1=357573&r2=357574&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/LdapDN.java
Sun Dec 18 15:58:45 2005
@@ -262,7 +262,7 @@
                 throw new InvalidNameException( "The byte array is not an UTF-8 encoded Unicode
String : " + uee.getMessage() );
             }
 
-            DNParser.parse( upName, rdns );
+            DNParser.parseInternal( upName, rdns );
         }
         
         // Stores the representations of a DN : internal (as a string and as a byte[]) and
external.
@@ -285,7 +285,7 @@
         try
         {
             upName = new String( bytes, "UTF-8" );
-            DNParser.parse( upName, rdns );
+            DNParser.parseInternal( upName, rdns );
             this.string = toString();
             this.bytes = bytes;
         }
@@ -664,7 +664,7 @@
                     throw new NoSuchElementException() ;
                 }
 
-                Object obj = get( pos ) ;
+                Object obj = rdns.get( rdns.size() - pos - 1 );
                 pos++ ;
                 return obj ;
             }



Mime
View raw message