directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r954539 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
Date Mon, 14 Jun 2010 16:21:35 GMT
Author: elecharny
Date: Mon Jun 14 16:21:34 2010
New Revision: 954539

URL: http://svn.apache.org/viewvc?rev=954539&view=rev
Log:
Replaced a clone by a call to the getNewDn() method

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java?rev=954539&r1=954538&r2=954539&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/referral/ReferralInterceptor.java
Mon Jun 14 16:21:34 2010
@@ -316,8 +316,7 @@ public class ReferralInterceptor extends
      **/
     public void moveAndRename( NextInterceptor next, MoveAndRenameOperationContext moveAndRenameContext
) throws LdapException
     {
-        DN newName = ( DN ) moveAndRenameContext.getNewSuperiorDn().clone();
-        newName.add( moveAndRenameContext.getNewRdn() );
+        DN newName = moveAndRenameContext.getNewDn();
 
         // Check if the entry is a referral itself
         boolean isReferral = isReferral( moveAndRenameContext.getEntry() );



Mime
View raw message