Author: doogie
Date: Wed Oct 17 20:57:29 2007
New Revision: 585846
URL:
http://svn.apache.org/viewvc?rev=585846&view=revLog:
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++;
}