commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r612276 - /commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/Status.java
Date Tue, 15 Jan 2008 22:52:14 GMT
Author: rahul
Date: Tue Jan 15 14:52:12 2008
New Revision: 612276

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

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

Modified: commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/Status.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/Status.java?rev=612276&r1=612275&r2=612276&view=diff
==============================================================================
--- commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/Status.java (original)
+++ commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/Status.java Tue
Jan 15 14:52:12 2008
@@ -20,7 +20,6 @@
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashSet;
-import java.util.Iterator;
 import java.util.Set;
 
 import org.apache.commons.scxml.model.State;
@@ -57,8 +56,8 @@
      */
     public boolean isFinal() {
         boolean rslt = true;
-        for (Iterator i = states.iterator(); i.hasNext();) {
-            State s = (State) i.next();
+        for (TransitionTarget tt : states) {
+            State s = (State) tt;
             if (!s.isFinal()) {
                 rslt = false;
                 break;



Mime
View raw message