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


The following commit(s) were added to refs/heads/master by this push:
     new 4b4c4dc0 Use forEach()
4b4c4dc0 is described below

commit 4b4c4dc077d5b09af7d0ba3562e4351793a7a796
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 7 16:20:53 2025 -0500

    Use forEach()
---
 src/main/java/org/apache/commons/jexl3/parser/JexlParser.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/jexl3/parser/JexlParser.java 
b/src/main/java/org/apache/commons/jexl3/parser/JexlParser.java
index edf521aa..8494e76d 100644
--- a/src/main/java/org/apache/commons/jexl3/parser/JexlParser.java
+++ b/src/main/java/org/apache/commons/jexl3/parser/JexlParser.java
@@ -374,9 +374,7 @@ public abstract class JexlParser extends StringParser 
implements JexlScriptParse
          * @param values the values to add
          */
         void addAll(final Collection<Object> values) {
-            for (Object value : values) {
-                add(value);
-            }
+            values.forEach(this::add);
         }
 
         /**

Reply via email to