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 88127879f81f9b63da8784fee2ce737faf444f12 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Fri Apr 11 18:27:25 2025 -0400 Use final --- .../commons/jexl3/introspection/JexlUberspect.java | 2 +- .../commons/jexl3/scripting/JexlScriptEngineTest.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java b/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java index 3cf26717..8b0db316 100644 --- a/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java +++ b/src/main/java/org/apache/commons/jexl3/introspection/JexlUberspect.java @@ -213,7 +213,7 @@ public interface JexlUberspect { * @return an operator uberspect instance * @since 3.4.1 */ - default JexlOperator.Uberspect getOperator(JexlArithmetic arithmetic) { + default JexlOperator.Uberspect getOperator(final JexlArithmetic arithmetic) { return null; } diff --git a/src/test/java/org/apache/commons/jexl3/scripting/JexlScriptEngineTest.java b/src/test/java/org/apache/commons/jexl3/scripting/JexlScriptEngineTest.java index d7ec9485..ff54d116 100644 --- a/src/test/java/org/apache/commons/jexl3/scripting/JexlScriptEngineTest.java +++ b/src/test/java/org/apache/commons/jexl3/scripting/JexlScriptEngineTest.java @@ -271,10 +271,10 @@ public class JexlScriptEngineTest { @Test void testMain0() throws Exception { - StringWriter strw = new StringWriter(); - StringReader strr = new StringReader("a=20\nb=22\na+b\n//q!\n"); + final StringWriter strw = new StringWriter(); + final StringReader strr = new StringReader("a=20\nb=22\na+b\n//q!\n"); Main.run(new BufferedReader(strr), new PrintWriter(strw), null); - String ctl = "> >> 20" + LF + + final String ctl = "> >> 20" + LF + "> >> 22" + LF + "> >> 42" + LF + "> "; @@ -283,10 +283,10 @@ public class JexlScriptEngineTest { @Test void testMain1() throws Exception { - StringWriter strw = new StringWriter(); - StringReader strr = new StringReader("args[0]+args[1]"); + final StringWriter strw = new StringWriter(); + final StringReader strr = new StringReader("args[0]+args[1]"); Main.run(new BufferedReader(strr), new PrintWriter(strw), new Object[]{20, 22}); - String ctl = ">>: 42" + LF; + final String ctl = ">>: 42" + LF; Assertions.assertEquals(ctl, strw.toString()); } @@ -298,10 +298,10 @@ public class JexlScriptEngineTest { try { System.setOut(new PrintStream(outContent)); file = Files.createTempFile("test-jsr233", ".jexl"); - BufferedWriter writer = new BufferedWriter(new FileWriter(file.toFile())); + final BufferedWriter writer = new BufferedWriter(new FileWriter(file.toFile())); writer.write("a=20;\nb=22;\na+b\n"); writer.close(); - String ctl = ">>: 42" + LF; + final String ctl = ">>: 42" + LF; Main.main(new String[]{file.toString()}); Assertions.assertEquals(ctl, outContent.toString()); } finally {