directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1004361 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnNode.java
Date Mon, 04 Oct 2010 19:03:13 GMT
Author: elecharny
Date: Mon Oct  4 19:03:12 2010
New Revision: 1004361

URL: http://svn.apache.org/viewvc?rev=1004361&view=rev
Log:
o Added the DN in the cloned node
o use the correct RDN when copyng the node in clone()

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnNode.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnNode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnNode.java?rev=1004361&r1=1004360&r2=1004361&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnNode.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnNode.java
Mon Oct  4 19:03:12 2010
@@ -792,10 +792,11 @@ public class DnNode<N> implements Clonea
         clonedDnNode.depth = depth;
         clonedDnNode.parent = parent;
         clonedDnNode.nodeRdn = nodeRdn;
+        clonedDnNode.nodeDn = nodeDn;
 
         for ( DnNode<N> node : children.values() )
         {
-            clonedDnNode.children.put( nodeRdn, node.clone() );
+            clonedDnNode.children.put( node.getRdn(), node.clone() );
         }
 
         return clonedDnNode;



Mime
View raw message