You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2024/02/14 11:33:12 UTC
(solr) branch jira/solr-13350 updated: minor: SolrIndexSearcher style: (post main merge) add back couple of finals
This is an automated email from the ASF dual-hosted git repository.
cpoerschke pushed a commit to branch jira/solr-13350
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/jira/solr-13350 by this push:
new 366235b1499 minor: SolrIndexSearcher style: (post main merge) add back couple of finals
366235b1499 is described below
commit 366235b1499f4dda275dccbd195bbeccfe891c18
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Wed Feb 14 11:31:56 2024 +0000
minor: SolrIndexSearcher style: (post main merge) add back couple of finals
---
solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
index d5d6a5193aa..20f920e28d5 100644
--- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
+++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java
@@ -2178,8 +2178,8 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable, SolrI
final float[] scores;
DocSet set = null;
- boolean needScores = (cmd.getFlags() & GET_SCORES) != 0;
- int maxDoc = maxDoc();
+ final boolean needScores = (cmd.getFlags() & GET_SCORES) != 0;
+ final int maxDoc = maxDoc();
cmd.setMinExactCount(Integer.MAX_VALUE); // We need the full DocSet
final ProcessedFilter pf = getProcessedFilter(cmd.getFilterList());
@@ -2234,14 +2234,14 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable, SolrI
qr.setNextCursorMark(cmd.getCursorMark());
} else {
final boolean allowMT = allowMT(query);
- TopDocs topDocs;
+ final TopDocs topDocs;
if (pf.postFilter != null
|| cmd.getSegmentTerminateEarly()
|| cmd.getTimeAllowed() > 0
|| !allowMT) {
@SuppressWarnings({"rawtypes"})
final TopDocsCollector<? extends ScoreDoc> topCollector = buildTopDocsCollector(len, cmd);
- DocSetCollector setCollector = new DocSetCollector(maxDoc);
+ final DocSetCollector setCollector = new DocSetCollector(maxDoc);
MaxScoreCollector maxScoreCollector = null;
List<Collector> collectors = new ArrayList<>(Arrays.asList(topCollector, setCollector));