directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r368624 - /directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java
Date Fri, 13 Jan 2006 07:08:27 GMT
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 );
     }
 
 



Mime
View raw message