Author: rahul
Date: Tue Jan 15 15:09:18 2008
New Revision: 612296
URL: http://svn.apache.org/viewvc?rev=612296&view=rev
Log:
Use for-each to reduce clutter.
Modified:
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/If.java
Modified:
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/If.java
URL:
http://svn.apache.org/viewvc/commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/If.java?rev=612296&r1=612295&r2=612296&view=diff
==============================================================================
---
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/If.java
(original)
+++
commons/proper/scxml/branches/J5/src/main/java/org/apache/commons/scxml/model/If.java
Tue Jan 15 15:09:18 2008
@@ -18,7 +18,6 @@
import java.util.ArrayList;
import java.util.Collection;
-import java.util.Iterator;
import java.util.List;
import org.apache.commons.logging.Log;
@@ -125,8 +124,7 @@
execute = eval.evalCond(ctx, cond).booleanValue();
ctx.setLocal(getNamespacesKey(), null);
// The "if" statement is a "container"
- for (Iterator ifiter = actions.iterator(); ifiter.hasNext();) {
- Action aa = (Action) ifiter.next();
+ for (Action aa : actions) {
if (execute && !(aa instanceof ElseIf)
&& !(aa instanceof Else)) {
aa.execute(evtDispatcher, errRep, scInstance, appLog,