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
commit c8e45cc88a46e8ee6ba61912924b7ec9f0505185 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sun Aug 17 09:34:52 2025 -0400 Don't initialize AtomicBoolean to its default value --- src/test/java/org/apache/commons/jexl3/ArithmeticTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java b/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java index 3b6098ca..5a568fd4 100644 --- a/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java +++ b/src/test/java/org/apache/commons/jexl3/ArithmeticTest.java @@ -879,7 +879,7 @@ class ArithmeticTest extends JexlTestCase { JexlScript e = JEXL.createScript("if (x) 1 else 2;", "x"); final JexlArithmetic jexla = JEXL.getArithmetic(); final JexlContext jc = new MapContext(); - final AtomicBoolean ab = new AtomicBoolean(false); + final AtomicBoolean ab = new AtomicBoolean(); Object o; o = e.execute(jc, ab); assertEquals(Integer.valueOf(2), o); @@ -1579,7 +1579,7 @@ class ArithmeticTest extends JexlTestCase { assertEquals(0, jexla.toInteger("")); assertEquals('b', jexla.toInteger('b')); assertEquals(1, jexla.toInteger(new AtomicBoolean(true))); - assertEquals(0, jexla.toInteger(new AtomicBoolean(false))); + assertEquals(0, jexla.toInteger(new AtomicBoolean())); // long coercions assertNullOperand(() -> jexla.toLong(null)); @@ -1589,7 +1589,7 @@ class ArithmeticTest extends JexlTestCase { assertEquals(0L, jexla.toLong("")); assertEquals('b', jexla.toLong('b')); assertEquals(1L, jexla.toLong(new AtomicBoolean(true))); - assertEquals(0L, jexla.toLong(new AtomicBoolean(false))); + assertEquals(0L, jexla.toLong(new AtomicBoolean())); } @Test @@ -2118,7 +2118,7 @@ class ArithmeticTest extends JexlTestCase { assertEquals(Boolean.TRUE, jexla.positivize(Boolean.TRUE)); assertEquals(Boolean.FALSE, jexla.positivize(Boolean.FALSE)); assertEquals(Boolean.TRUE, jexla.positivize(new AtomicBoolean(true))); - assertEquals(Boolean.FALSE, jexla.positivize(new AtomicBoolean(false))); + assertEquals(Boolean.FALSE, jexla.positivize(new AtomicBoolean())); assertNullOperand(() -> jexla.negate(null)); assertNull(jexlb.negate(null));