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 609b9f01b48dc7f2c0765541daf0f19144a5af77
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 1 10:21:44 2024 -0400

    Use final
---
 .../org/apache/commons/jexl3/internal/RangeTest.java | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/internal/RangeTest.java 
b/src/test/java/org/apache/commons/jexl3/internal/RangeTest.java
index 80ade003..0221399d 100644
--- a/src/test/java/org/apache/commons/jexl3/internal/RangeTest.java
+++ b/src/test/java/org/apache/commons/jexl3/internal/RangeTest.java
@@ -86,7 +86,7 @@ public class RangeTest extends JexlTestCase {
 
     @Test
     public void testAscIterator() {
-        Iterator<Integer> ii = new AscIntegerIterator(3, 5);
+        final Iterator<Integer> ii = new AscIntegerIterator(3, 5);
         Integer i = 3;
         while(ii.hasNext()) {
             assertEquals(i, ii.next());
@@ -95,20 +95,20 @@ public class RangeTest extends JexlTestCase {
         try {
             ii.next();
             fail("iterator exhausted");
-        } catch(NoSuchElementException e) {
+        } catch(final NoSuchElementException e) {
             assertNotNull(e);
         }
         try {
             ii.remove();
             fail("remove not implemented");
-        } catch(UnsupportedOperationException e) {
+        } catch(final UnsupportedOperationException e) {
             assertNotNull(e);
         }
     }
 
     @Test
     public void testAscLongIterator() {
-        Iterator<Long> ii = new AscLongIterator(3L, 5L);
+        final Iterator<Long> ii = new AscLongIterator(3L, 5L);
         Long i = 3L;
         while(ii.hasNext()) {
             assertEquals(i, ii.next());
@@ -117,13 +117,13 @@ public class RangeTest extends JexlTestCase {
         try {
             ii.next();
             fail("iterator exhausted");
-        } catch(NoSuchElementException e) {
+        } catch(final NoSuchElementException e) {
             assertNotNull(e);
         }
         try {
             ii.remove();
             fail("remove not implemented");
-        } catch(UnsupportedOperationException e) {
+        } catch(final UnsupportedOperationException e) {
             assertNotNull(e);
         }
     }
@@ -230,10 +230,10 @@ public class RangeTest extends JexlTestCase {
 
     @Test
     public void testSource() {
-        JexlFeatures features = JexlFeatures.createDefault();
-        Source src0 = new Source(features, "x -> -x");
-        Source src0b = new Source(features, "x -> -x");
-        Source src1 = new Source(features, "x -> +x");
+        final JexlFeatures features = JexlFeatures.createDefault();
+        final Source src0 = new Source(features, "x -> -x");
+        final Source src0b = new Source(features, "x -> -x");
+        final Source src1 = new Source(features, "x -> +x");
         assertEquals(7, src0.length());
         assertEquals(src0, src0);
         assertEquals(src0, src0b);

Reply via email to