directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r678566 - /directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
Date Mon, 21 Jul 2008 21:01:08 GMT
Author: akarasulu
Date: Mon Jul 21 14:01:08 2008
New Revision: 678566

URL: http://svn.apache.org/viewvc?rev=678566&view=rev
Log:
removing unnecessary for loop

Modified:
    directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java

Modified: directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java?rev=678566&r1=678565&r2=678566&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
Mon Jul 21 14:01:08 2008
@@ -321,11 +321,7 @@
                 result.setMatchedDn( (LdapDN)e.getResolvedName() );
             }
 
-            for ( ResultResponse resultResponse : Collections.singleton( req.getResultResponse()
) )
-            {
-                session.getIoSession().write( resultResponse );
-            }
-            
+            session.getIoSession().write( req.getResultResponse() );
             session.unregisterOutstandingRequest( req );
         }
         finally



Mime
View raw message