You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2007/10/18 05:57:30 UTC
svn commit: r585846 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataAssert.java
Author: doogie
Date: Wed Oct 17 20:57:29 2007
New Revision: 585846
URL: http://svn.apache.org/viewvc?rev=585846&view=rev
Log:
Final bit of generics for EntityDataAssert.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataAssert.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataAssert.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataAssert.java?rev=585846&r1=585845&r2=585846&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataAssert.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/util/EntityDataAssert.java Wed Oct 17 20:57:29 2007
@@ -53,10 +53,7 @@
Debug.logVerbose("Loading XML Resource: " + dataUrl.toExternalForm(), module);
try {
- List checkValueList = delegator.readXmlDocument(dataUrl);
- Iterator checkValueIter = checkValueList.iterator();
- while (checkValueIter.hasNext()) {
- GenericValue checkValue = (GenericValue) checkValueIter.next();
+ for (GenericValue checkValue: delegator.readXmlDocument(dataUrl)) {
checkSingleValue(checkValue, delegator, errorMessages);
rowsChecked++;
}