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

janhoy pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new d3b124f364f Fix some compile-warnings on branch_9x for precommit 
(#3928)
d3b124f364f is described below

commit d3b124f364f9bcca4634120ad7952b04287d834b
Author: Jan Høydahl <[email protected]>
AuthorDate: Thu Dec 18 01:22:50 2025 +0100

    Fix some compile-warnings on branch_9x for precommit (#3928)
---
 .../src/test/org/apache/solr/legacy/TestLegacyNumericUtils.java     | 4 ++--
 .../apache/solr/analytics/function/mapping/FilterFunctionTest.java  | 2 +-
 .../apache/solr/client/solrj/io/stream/eval/AddEvaluatorTest.java   | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/solr/core/src/test/org/apache/solr/legacy/TestLegacyNumericUtils.java 
b/solr/core/src/test/org/apache/solr/legacy/TestLegacyNumericUtils.java
index 5a4ff489d12..89eb338d6f0 100644
--- a/solr/core/src/test/org/apache/solr/legacy/TestLegacyNumericUtils.java
+++ b/solr/core/src/test/org/apache/solr/legacy/TestLegacyNumericUtils.java
@@ -266,7 +266,7 @@ public class TestLegacyNumericUtils extends SolrTestCase {
         new float[] {
           Float.NEGATIVE_INFINITY,
           -2.3E25f,
-          -9.9999999E+14f,
+          Float.intBitsToFloat(0xd8635fa9), // -1.0E15
           -1.0f,
           -1.0E-1f,
           -1.0E-2f,
@@ -275,7 +275,7 @@ public class TestLegacyNumericUtils extends SolrTestCase {
           1.0E-2f,
           1.0E-1f,
           1.0f,
-          9.9999999E+14f,
+          Float.intBitsToFloat(0x58635fa9), // 1.0E15
           2.3E25f,
           Float.POSITIVE_INFINITY,
           Float.NaN
diff --git 
a/solr/modules/analytics/src/test/org/apache/solr/analytics/function/mapping/FilterFunctionTest.java
 
b/solr/modules/analytics/src/test/org/apache/solr/analytics/function/mapping/FilterFunctionTest.java
index 1bb79882d93..62c7d278d9f 100644
--- 
a/solr/modules/analytics/src/test/org/apache/solr/analytics/function/mapping/FilterFunctionTest.java
+++ 
b/solr/modules/analytics/src/test/org/apache/solr/analytics/function/mapping/FilterFunctionTest.java
@@ -715,7 +715,7 @@ public class FilterFunctionTest extends SolrTestCaseJ4 {
           fail("There should be no values to stream");
         });
 
-    val.setValues(50.343F, -74.9874F, 2.34233242E+9F);
+    val.setValues(50.343F, -74.9874F, 2.34233242E+9f);
     filter.setExists(false);
     func.streamFloats(
         value -> {
diff --git 
a/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/AddEvaluatorTest.java
 
b/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/AddEvaluatorTest.java
index a802e266900..742b1e8197a 100644
--- 
a/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/AddEvaluatorTest.java
+++ 
b/solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/eval/AddEvaluatorTest.java
@@ -200,7 +200,7 @@ public class AddEvaluatorTest extends SolrTestCase {
     values.put("d", 123456789123456789L);
     result = evaluator.evaluate(new Tuple(values));
     assertTrue(result instanceof Double);
-    assertEquals(4 * 123456789123456784D, (Double) result, 0);
+    assertEquals(4 * (double) 123456789123456789L, (Double) result, 0);
   }
 
   @Test
@@ -251,7 +251,7 @@ public class AddEvaluatorTest extends SolrTestCase {
     values.put("d", 123456789123456789L);
     result = evaluator.evaluate(new Tuple(values));
     assertTrue(result instanceof Double);
-    assertEquals(6 * 123456789123456784D, (Double) result, 0);
+    assertEquals(6 * (double) 123456789123456789L, (Double) result, 0);
 
     values.clear();
     values.put("a", 4.12345678);
@@ -311,7 +311,7 @@ public class AddEvaluatorTest extends SolrTestCase {
     values.put("d", 123456789123456789L);
     result = evaluator.evaluate(new Tuple(values));
     assertTrue(result instanceof Double);
-    assertEquals(4 * 123456789123456784D, (Double) result, 0);
+    assertEquals(4 * (double) 123456789123456789L, (Double) result, 0);
 
     values.clear();
     values.put("a", -4.12345678);

Reply via email to