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 b724ba1c76ab4c3bfa57f1a26b372ed0d74da515
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jun 1 18:51:20 2024 -0400

    Checkstyle line length
---
 src/test/java/org/apache/commons/jexl3/LexicalTest.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/LexicalTest.java 
b/src/test/java/org/apache/commons/jexl3/LexicalTest.java
index 88076620..de39c12f 100644
--- a/src/test/java/org/apache/commons/jexl3/LexicalTest.java
+++ b/src/test/java/org/apache/commons/jexl3/LexicalTest.java
@@ -435,11 +435,10 @@ public class LexicalTest {
 
     @Test
     public void testConst2b() {
-        final JexlFeatures f = new JexlFeatures();
         final JexlEngine jexl = new JexlBuilder().strict(true).create();
         for (final String op : Arrays.asList("=", "+=", "-=", "/=", "*=", 
"%=", "<<=", ">>=", ">>>=", "^=", "&=", "|=")) {
-            final JexlException.Parsing xparse = 
assertThrows(JexlException.Parsing.class, () -> jexl.createScript("const foo = 
42;  if (true) { foo " + op + " 1; }"),
-                    "should fail, const precludes assignment");
+            final JexlException.Parsing xparse = 
assertThrows(JexlException.Parsing.class,
+                    () -> jexl.createScript("const foo = 42;  if (true) { foo 
" + op + " 1; }"), "should fail, const precludes assignment");
             assertTrue(xparse.getMessage().contains("foo"));
         }
     }

Reply via email to