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 896e82f62c1aa8e7bad5491b25eca66644a6d7aa
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 1 10:22:36 2024 -0400

    Use final; remove redundant parens
---
 src/test/java/org/apache/commons/jexl3/examples/StreamTest.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java 
b/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java
index 6fab60d0..8d83962b 100644
--- a/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java
+++ b/src/test/java/org/apache/commons/jexl3/examples/StreamTest.java
@@ -54,7 +54,7 @@ public class StreamTest {
          * @param filter the lambda to use as filter
          * @return the filtered result as a list
          */
-        public List<?> filter(Collection<?> collection, final JexlScript 
filter) {
+        public List<?> filter(final Collection<?> collection, final JexlScript 
filter) {
             return collection.stream()
                 .filter(x -> x != null && TRUE.equals(filter.execute(this, x)))
                 .collect(Collectors.toList());
@@ -66,7 +66,7 @@ public class StreamTest {
          * @param mapper the lambda to use as mapper
          * @return the mapped result as a list
          */
-        public List<?> map(Collection<?> collection, final JexlScript mapper) {
+        public List<?> map(final Collection<?> collection, final JexlScript 
mapper) {
             return collection.stream()
                 .map(x -> mapper.execute(this, x))
                 .filter(Objects::nonNull)
@@ -137,7 +137,7 @@ public class StreamTest {
         assertTrue(filtered instanceof List<?>);
         List<URI> result = (List<URI>) filtered;
         assertEquals(2, result.size());
-        for(URI uri : result) {
+        for(final URI uri : result) {
             assertTrue(uri.getScheme().startsWith("http"));
         }
 
@@ -149,7 +149,7 @@ public class StreamTest {
         assertTrue(transformed instanceof List<?>);
         result = (List<URI>) transformed;
         assertEquals(2, result.size());
-        for(URI uri : result) {
+        for(final URI uri : result) {
           assertEquals("https", uri.getScheme());
         }
     }

Reply via email to