jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1459801 - /jackrabbit/tags/2.4.1/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NotQuery.java
Date Fri, 22 Mar 2013 14:30:32 GMT
Author: ard
Date: Fri Mar 22 14:30:32 2013
New Revision: 1459801

URL: http://svn.apache.org/r1459801
Log:
JCR-3539 revert. Not on tag of course. Apologies

Modified:
    jackrabbit/tags/2.4.1/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NotQuery.java

Modified: jackrabbit/tags/2.4.1/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NotQuery.java
URL: http://svn.apache.org/viewvc/jackrabbit/tags/2.4.1/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NotQuery.java?rev=1459801&r1=1459800&r2=1459801&view=diff
==============================================================================
--- jackrabbit/tags/2.4.1/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NotQuery.java
(original)
+++ jackrabbit/tags/2.4.1/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NotQuery.java
Fri Mar 22 14:30:32 2013
@@ -171,8 +171,6 @@ class NotQuery extends Query {
          */
         private int contextNo = -1;
 
-        private boolean firstTime = true;
-
         /**
          * Creates a new scorer
          * @param reader
@@ -188,8 +186,7 @@ class NotQuery extends Query {
                 return docNo;
             }
 
-            if (firstTime) {
-                firstTime = false;
+            if (docNo == -1) {
                 // get first doc of context scorer
                 int docId = contextScorer.nextDoc();
                 if (docId != NO_MORE_DOCS) {



Mime
View raw message