You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2013/06/11 21:59:40 UTC

svn commit: r1491929 - /commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/ChainBase.java

Author: britter
Date: Tue Jun 11 19:59:39 2013
New Revision: 1491929

URL: http://svn.apache.org/r1491929
Log:
Use enhanced for loop instead of iteration with counter

Modified:
    commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/ChainBase.java

Modified: commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/ChainBase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/ChainBase.java?rev=1491929&r1=1491928&r2=1491929&view=diff
==============================================================================
--- commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/ChainBase.java (original)
+++ commons/proper/chain/trunk/core/src/main/java/org/apache/commons/chain2/impl/ChainBase.java Tue Jun 11 19:59:39 2013
@@ -73,8 +73,8 @@ public class ChainBase<K, V, C extends M
         if (commands == null) {
             throw new IllegalArgumentException();
         }
-        for (int i = 0; i < commands.length; i++) {
-            addCommand(commands[i]);
+        for (Command<K, V, C> command : commands) {
+            addCommand(command);
         }
     }