[
https://issues.apache.org/jira/browse/GEODE-7772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Huynh updated GEODE-7772:
-------------------------------
Description:
The if statement in the hasNext() method can be simplified by condensing into a
single line return statement.
See here:
[https://github.com/apache/geode/blob/182de42d8e56a900f0d22793a440af72f62f09f4/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java#L149]
Example, and possibly correct fix:
{code:java}
return !currentPage.isEmpty();{code}
was:
The if statement found here:
[https://github.com/apache/geode/blob/182de42d8e56a900f0d22793a440af72f62f09f4/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java#L149]
can be simplified by condensing into a single line return statement
return !currentPage.isEmpty();
> Simplify hasNext in PageableLuceneQueryResultsImpl
> --------------------------------------------------
>
> Key: GEODE-7772
> URL: https://issues.apache.org/jira/browse/GEODE-7772
> Project: Geode
> Issue Type: Task
> Reporter: Jason Huynh
> Priority: Major
> Labels: beginner, newb, starter
>
> The if statement in the hasNext() method can be simplified by condensing into
> a single line return statement.
> See here:
> [https://github.com/apache/geode/blob/182de42d8e56a900f0d22793a440af72f62f09f4/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/PageableLuceneQueryResultsImpl.java#L149]
>
> Example, and possibly correct fix:
> {code:java}
> return !currentPage.isEmpty();{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)