Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 72683 invoked from network); 24 Apr 2010 17:12:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Apr 2010 17:12:07 -0000 Received: (qmail 78451 invoked by uid 500); 24 Apr 2010 17:12:07 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 78406 invoked by uid 500); 24 Apr 2010 17:12:07 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 78399 invoked by uid 99); 24 Apr 2010 17:12:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 17:12:07 +0000 X-ASF-Spam-Status: No, hits=-1755.9 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Apr 2010 17:12:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9169F2388A02; Sat, 24 Apr 2010 17:11:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: kayyagari@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100424171124.9169F2388A02@eris.apache.org> 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(); }