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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


The following commit(s) were added to refs/heads/master by this push:
     new 4823c08c Migrate from API deprecated in Java 9
4823c08c is described below

commit 4823c08c020c19e84d0541ea316f4576314e4273
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Jan 30 09:50:02 2025 -0500

    Migrate from API deprecated in Java 9
---
 src/test/java/org/apache/commons/jexl3/ArithmeticTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java 
b/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java
index 6e2550cd..52f37807 100644
--- a/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java
+++ b/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java
@@ -2035,7 +2035,7 @@ public class ArithmeticTest extends JexlTestCase {
         assertEquals(BigDecimal.ZERO, jexla.toBigDecimal(""));
         assertEquals(BigDecimal.ZERO, jexla.toBigDecimal((char) 0));
 
-        final Double d64d3 = new Double(6.4 / 3);
+        final Double d64d3 = Double.valueOf(6.4 / 3);
         assertEquals(d64d3, ((Number) JEXL.createExpression("6.4 / 
3").evaluate(null)).doubleValue(), EPSILON);
         asserter.assertExpression("6.4 / 3", d64d3);
         assertEquals(d64d3, ((Number) JEXL.createExpression("6.4 / 
3d").evaluate(null)).doubleValue(), EPSILON);

Reply via email to