directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r577353 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchRequestImpl.java
Date Wed, 19 Sep 2007 16:43:17 GMT
Author: elecharny
Date: Wed Sep 19 09:43:16 2007
New Revision: 577353

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

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchRequestImpl.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchRequestImpl.java?rev=577353&r1=577352&r2=577353&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchRequestImpl.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchRequestImpl.java
Wed Sep 19 09:43:16 2007
@@ -443,13 +443,8 @@
         req.getFilter().accept( visitor );
         filter.accept( visitor );
 
-        StringBuilder buf = new StringBuilder();
-        filter.printToBuffer( buf );
-        String myFilterString = buf.toString();
-
-        buf.setLength( 0 );
-        req.getFilter().printToBuffer( buf );
-        String reqFilterString = buf.toString();
+        String myFilterString = filter.toString();
+        String reqFilterString = req.getFilter().toString();
 
         return myFilterString.equals( reqFilterString );
     }
@@ -467,7 +462,7 @@
         if ( filter != null )
         {
             sb.append( "        filter : '" );
-            filter.printToBuffer( sb );
+            sb.append( filter.toString() );
             sb.append( "'\n" );
         }
         



Mime
View raw message