r1359 - topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence
Author: tchemit Date: 2009-02-12 00:02:03 +0000 (Thu, 12 Feb 2009) New Revision: 1359 Modified: topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/DepthEntityVisitor.java Log: use foreach Modified: topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/DepthEntityVisitor.java =================================================================== --- topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/DepthEntityVisitor.java 2009-02-11 19:58:38 UTC (rev 1358) +++ topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/DepthEntityVisitor.java 2009-02-12 00:02:03 UTC (rev 1359) @@ -20,7 +20,6 @@ import java.util.ArrayList; import java.util.Collection; -import java.util.Iterator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -94,9 +93,7 @@ Collection cValue = (Collection)value; if(cValue != null && !cValue.isEmpty()) { - Iterator itOnValues = cValue.iterator(); - while(itOnValues.hasNext()) { - Object currentValue = itOnValues.next(); + for (Object currentValue : cValue) { visit(e, type, currentValue); } }
participants (1)
-
tchemit@users.labs.libre-entreprise.org