commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r629700 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfigurationXMLReader.java
Date Thu, 21 Feb 2008 07:06:53 GMT
Author: oheger
Date: Wed Feb 20 23:06:52 2008
New Revision: 629700

URL: http://svn.apache.org/viewvc?rev=629700&view=rev
Log:
Replaced iterator by new for loop

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfigurationXMLReader.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfigurationXMLReader.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfigurationXMLReader.java?rev=629700&r1=629699&r2=629700&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfigurationXMLReader.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfigurationXMLReader.java
Wed Feb 20 23:06:52 2008
@@ -17,9 +17,6 @@
 
 package org.apache.commons.configuration2;
 
-import java.util.Iterator;
-
-import org.apache.commons.configuration2.HierarchicalConfiguration.Node;
 import org.apache.commons.configuration2.tree.ConfigurationNode;
 import org.apache.commons.configuration2.tree.ConfigurationNodeVisitorAdapter;
 import org.xml.sax.Attributes;
@@ -171,9 +168,8 @@
         {
             AttributesImpl attrs = new AttributesImpl();
 
-            for (Iterator it = node.getAttributes().iterator(); it.hasNext();)
+            for (ConfigurationNode child : node.getAttributes())
             {
-                Node child = (Node) it.next();
                 if (child.getValue() != null)
                 {
                     String attr = child.getName();



Mime
View raw message