You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by mi...@apache.org on 2020/02/07 10:28:06 UTC
[geode] branch develop updated: GEODE-7772: Simplify hasNext in
PageableLuceneQueryResultsImpl (#4678)
This is an automated email from the ASF dual-hosted git repository.
mivanac pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 93aa3c4 GEODE-7772: Simplify hasNext in PageableLuceneQueryResultsImpl (#4678)
93aa3c4 is described below
commit 93aa3c4668f888e62d7951c1712c179955b6d01b
Author: mkevo <48...@users.noreply.github.com>
AuthorDate: Fri Feb 7 11:27:30 2020 +0100
GEODE-7772: Simplify hasNext in PageableLuceneQueryResultsImpl (#4678)
---
.../geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java
index 2c2e621..4fc4f8c 100644
--- a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java
+++ b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java
@@ -144,12 +144,8 @@ public class PageableLuceneQueryResultsImpl<K, V> implements PageableLuceneQuery
@Override
public boolean hasNext() {
-
advancePage();
- if (currentPage.isEmpty()) {
- return false;
- }
- return true;
+ return !currentPage.isEmpty();
}
@Override