directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r577370 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
Date Wed, 19 Sep 2007 16:58:03 GMT
Author: elecharny
Date: Wed Sep 19 09:58:03 2007
New Revision: 577370

URL: http://svn.apache.org/viewvc?rev=577370&view=rev
Log:
Used the toString() method instead of the printToBuffer() for filters

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java?rev=577370&r1=577369&r2=577370&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
Wed Sep 19 09:58:03 2007
@@ -347,9 +347,7 @@
 
                 // now we process entries for ever as they change 
                 PersistentSearchListener handler = new PersistentSearchListener( ctx, session,
req );
-                StringBuilder buf = new StringBuilder();
-                req.getFilter().printToBuffer( buf );
-                ctx.addNamingListener( req.getBase(), buf.toString(), controls, handler );
+                ctx.addNamingListener( req.getBase(), req.getFilter().toString(), controls,
handler );
                 //TM long t1 = System.nanoTime();
                 //TM synchronized( lock )
                 //TM {



Mime
View raw message