You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/09/14 18:32:43 UTC

[commons-configuration] branch master updated: Use Java 5 for each loop

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


The following commit(s) were added to refs/heads/master by this push:
     new 0c3ad3d5 Use Java 5 for each loop
0c3ad3d5 is described below

commit 0c3ad3d56a382e5653d07b9cc5821b97581ee744
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Sep 14 14:32:38 2022 -0400

    Use Java 5 for each loop
---
 .../commons/configuration2/web/TestServletRequestConfiguration.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/configuration2/web/TestServletRequestConfiguration.java b/src/test/java/org/apache/commons/configuration2/web/TestServletRequestConfiguration.java
index 66bfa1fa..9b2331cb 100644
--- a/src/test/java/org/apache/commons/configuration2/web/TestServletRequestConfiguration.java
+++ b/src/test/java/org/apache/commons/configuration2/web/TestServletRequestConfiguration.java
@@ -111,8 +111,8 @@ public class TestServletRequestConfiguration extends TestAbstractConfiguration {
         final List<?> v = c.getList(listKey);
 
         final List<String> expected = new ArrayList<>();
-        for (int i = 0; i < values.length; i++) {
-            expected.add(values[i].replace("\\", ""));
+        for (String value : values) {
+            expected.add(value.replace("\\", ""));
         }
         assertEquals(expected, v);
     }