svn commit: r990343 - /ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r990343 - /ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy

lektran
Author: lektran
Date: Sat Aug 28 11:21:33 2010
New Revision: 990343

URL: http://svn.apache.org/viewvc?rev=990343&view=rev
Log:
Minor groovy tidy up

Modified:
    ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy?rev=990343&r1=990342&r2=990343&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/XmlDsDump.groovy Sat Aug 28 11:21:33 2010
@@ -212,8 +212,7 @@ if (tobrowser) {
                 }
 
                 curNumberWritten = 0;
-                valuesIter = values.iterator();
-                while ((value = valuesIter.next()) != null) {
+                while (value = values.next()) {
                     value.writeXmlText(writer, "");
                     numberWritten++;
                     curNumberWritten++;
@@ -269,8 +268,7 @@ if (tobrowser) {
                     isFirst = true;
                     writer = null;
                     fileSplitNumber = 1;
-                    valuesIter = values.iterator();
-                    while ((value = valuesIter.next()) != null) {
+                    while (value = values.next()) {
                         //Don't bother writing the file if there's nothing
                         //to put into it
                         if (isFirst) {