You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2006/01/13 08:08:27 UTC

svn commit: r368624 - /directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java

Author: akarasulu
Date: Thu Jan 12 23:08:26 2006
New Revision: 368624

URL: http://svn.apache.org/viewcvs?rev=368624&view=rev
Log:
removing the copies of controls again

Modified:
    directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java

Modified: directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java?rev=368624&r1=368623&r2=368624&view=diff
==============================================================================
--- directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java (original)
+++ directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java Thu Jan 12 23:08:26 2006
@@ -353,20 +353,7 @@
         getNexusProxy().add( target.toString(), target, attributes );
 
         // Initialize the new context
-        ServerLdapContext ctx = new ServerLdapContext( getService(), getPrincipal(), target );
-        Control [] controls = ( ( ServerLdapContext ) this ).getRequestControls();
-
-        if ( controls != null )
-        {
-            controls = ( Control[] ) controls.clone();
-        }
-        else
-        {
-            controls = new Control[0];
-        }
-
-        ctx.setRequestControls( controls );
-        return ctx;
+        return new ServerLdapContext( getService(), getPrincipal(), target );
     }