You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2022/04/20 14:48:15 UTC

[lucene] branch main updated: LUCENE-10153: Make errorprone happy.

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

jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 7c173b0e1c2 LUCENE-10153: Make errorprone happy.
7c173b0e1c2 is described below

commit 7c173b0e1c2627457f02bdbbe8aecf6abb56326c
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Wed Apr 20 16:47:34 2022 +0200

    LUCENE-10153: Make errorprone happy.
---
 lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java b/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java
index bf7e3ff7547..5ab0291dec5 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java
@@ -62,7 +62,7 @@ public class TestWANDScorer extends LuceneTestCase {
     assertEquals(
         1 << (WANDScorer.FLOAT_MANTISSA_BITS - 1),
         WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(32f)));
-    assertEquals(1, WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(1L << 60)));
+    assertEquals(1, WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(Math.scalb(1f, 60))));
     assertEquals(
         1, WANDScorer.scaleMaxScore(32f, WANDScorer.scalingFactor(Float.POSITIVE_INFINITY)));
   }