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

henrib 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 70d7944a JEXL: checkstyle;
70d7944a is described below

commit 70d7944ab6fb9f454280edc835f9a5f61c0d692b
Author: Henrib <[email protected]>
AuthorDate: Wed Nov 5 18:44:07 2025 -0800

    JEXL: checkstyle;
---
 src/test/java/org/apache/commons/jexl3/Issues400Test.java | 5 ++++-
 src/test/java/org/apache/commons/jexl3/SwitchTest.java    | 6 +++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/Issues400Test.java 
b/src/test/java/org/apache/commons/jexl3/Issues400Test.java
index 0c2a89c8..daf801eb 100644
--- a/src/test/java/org/apache/commons/jexl3/Issues400Test.java
+++ b/src/test/java/org/apache/commons/jexl3/Issues400Test.java
@@ -335,7 +335,10 @@ public class Issues400Test {
     void test413d() {
         final JexlBuilder builder = new JexlBuilder().features(new 
JexlFeatures().constCapture(true));
         final JexlEngine jexl = builder.create();
-        final JexlException.Parsing xparse = 
assertThrows(JexlException.Parsing.class, () -> jexl.createScript("var c = 42; 
var f = y -> c += y; f(z)", "z"), "c should be const");
+        final JexlException.Parsing xparse = assertThrows(
+                JexlException.Parsing.class,
+                () -> jexl.createScript("var c = 42; var f = y -> c += y; 
f(z)", "z"),
+                "c should be const");
         assertTrue(xparse.getMessage().contains("const"));
     }
 
diff --git a/src/test/java/org/apache/commons/jexl3/SwitchTest.java 
b/src/test/java/org/apache/commons/jexl3/SwitchTest.java
index 9b220319..a9ffbdc4 100644
--- a/src/test/java/org/apache/commons/jexl3/SwitchTest.java
+++ b/src/test/java/org/apache/commons/jexl3/SwitchTest.java
@@ -16,6 +16,9 @@
  */
 package org.apache.commons.jexl3;
 
+import java.util.Arrays;
+import java.util.List;
+
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
@@ -25,9 +28,6 @@ import org.apache.commons.jexl3.internal.Debugger;
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
 
-import java.util.Arrays;
-import java.util.List;
-
 /**
  * Tests switch/case statement and expression.
  */

Reply via email to