You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2020/12/04 22:34:34 UTC

[lucene-solr] branch branch_8x updated: LUCENE-9599: fix compilation issue in Java 8

This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new b73e87a  LUCENE-9599: fix compilation issue in Java 8
b73e87a is described below

commit b73e87aa9e930879abe989a24867b2012db56d21
Author: David Smiley <ds...@apache.org>
AuthorDate: Fri Dec 4 17:34:07 2020 -0500

    LUCENE-9599: fix compilation issue in Java 8
---
 lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
index 219f435..52b3da2 100644
--- a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
+++ b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java
@@ -419,7 +419,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
           && queueFull
           && hitsThresholdChecker.isThresholdReached()) {
       assert bottom != null;
-      float minScore = (float) firstComparator.value(bottom.slot);
+      float minScore = (Float) firstComparator.value(bottom.slot);
       if (minScore > minCompetitiveScore) {
         scorer.setMinCompetitiveScore(minScore);
         minCompetitiveScore = minScore;