commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r612281 - /commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/LogUtils.java
Date Tue, 15 Jan 2008 22:55:39 GMT
Author: rahul
Date: Tue Jan 15 14:55:38 2008
New Revision: 612281

URL: http://svn.apache.org/viewvc?rev=612281&view=rev
Log:
Use for-each to reduce clutter.

Modified:
    commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/LogUtils.java

Modified: commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/LogUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/LogUtils.java?rev=612281&r1=612280&r2=612281&view=diff
==============================================================================
--- commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/LogUtils.java
(original)
+++ commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/LogUtils.java
Tue Jan 15 14:55:38 2008
@@ -16,7 +16,6 @@
  */
 package org.apache.commons.scxml.env;
 
-import java.util.Iterator;
 import java.util.LinkedList;
 
 import org.apache.commons.scxml.model.Transition;
@@ -66,8 +65,7 @@
                 parent = parent.getParent();
             }
             StringBuffer names = new StringBuffer();
-            for (Iterator i = pathElements.iterator(); i.hasNext();) {
-                TransitionTarget pathElement = (TransitionTarget) i.next();
+            for (TransitionTarget pathElement : pathElements) {
                 names.append('/').append(pathElement.getId());
             }
             return names.toString();



Mime
View raw message