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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 08988a2c9 Use final
08988a2c9 is described below

commit 08988a2c9029b1625115b3e3c6d30cb0fd1de57a
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Dec 9 10:49:18 2024 -0500

    Use final
---
 src/main/java/org/apache/commons/lang3/Validate.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/lang3/Validate.java 
b/src/main/java/org/apache/commons/lang3/Validate.java
index 298285aeb..5f88e6ddc 100644
--- a/src/main/java/org/apache/commons/lang3/Validate.java
+++ b/src/main/java/org/apache/commons/lang3/Validate.java
@@ -667,7 +667,7 @@ public class Validate {
      */
     public static <T extends Iterable<?>> T noNullElements(final T iterable, 
final String message, final Object... values) {
         Objects.requireNonNull(iterable, "iterable");
-        AtomicInteger ai = new AtomicInteger();
+        final AtomicInteger ai = new AtomicInteger();
         iterable.forEach(e -> {
             if (e == null) {
                 throw new IllegalArgumentException(getMessage(message, 
ArrayUtils.addAll(values, ai.getAndIncrement())));

Reply via email to