directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1403623 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/EntryToResponseCursor.java
Date Tue, 30 Oct 2012 06:09:34 GMT
Author: kayyagari
Date: Tue Oct 30 06:09:33 2012
New Revision: 1403623

URL: http://svn.apache.org/viewvc?rev=1403623&view=rev
Log:
do not set 'done' to the return value of wrapped.next()

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/EntryToResponseCursor.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/EntryToResponseCursor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/EntryToResponseCursor.java?rev=1403623&r1=1403622&r2=1403623&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/EntryToResponseCursor.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/api/EntryToResponseCursor.java
Tue Oct 30 06:09:33 2012
@@ -177,15 +177,16 @@ public class EntryToResponseCursor exten
 
     public boolean next() throws Exception
     {
-        done = wrapped.next();
+        boolean next = wrapped.next();
 
-        if ( !done )
+        if ( !next )
         {
             searchDoneResp = new SearchResultDoneImpl( messageId );
             searchDoneResp.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
+            done = true;
         }
 
-        return done;
+        return next;
     }
 
 



Mime
View raw message