directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r937648 - /directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/filtering/CursorList.java
Date Sat, 24 Apr 2010 17:11:24 GMT
Author: kayyagari
Date: Sat Apr 24 17:11:24 2010
New Revision: 937648

URL: http://svn.apache.org/viewvc?rev=937648&view=rev
Log:
o fixed the index value set in beforeFirst() and afterLast() methods

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

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/filtering/CursorList.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/filtering/CursorList.java?rev=937648&r1=937647&r2=937648&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/filtering/CursorList.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/filtering/CursorList.java
Sat Apr 24 17:11:24 2010
@@ -166,7 +166,7 @@ public class CursorList implements Entry
      */
     public void beforeFirst() throws Exception
     {
-        this.index = -1;
+        this.index = 0;
         list.get( index ).beforeFirst();
     }
 
@@ -176,7 +176,7 @@ public class CursorList implements Entry
      */
     public void afterLast() throws Exception
     {
-        this.index = end;
+        this.index = end-1;
         list.get( index ).afterLast();
     }
 



Mime
View raw message