You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ra...@apache.org on 2008/01/15 23:55:39 UTC
svn commit: r612281 -
/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/env/LogUtils.java
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();