commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1210177 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/StrictConfigurationComparator.java
Date Sun, 04 Dec 2011 18:58:19 GMT
Author: oheger
Date: Sun Dec  4 18:58:19 2011
New Revision: 1210177

URL: http://svn.apache.org/viewvc?rev=1210177&view=rev
Log:
Java 1.5 compatibility: raw types.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/StrictConfigurationComparator.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/StrictConfigurationComparator.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/StrictConfigurationComparator.java?rev=1210177&r1=1210176&r2=1210177&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/StrictConfigurationComparator.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/StrictConfigurationComparator.java
Sun Dec  4 18:58:19 2011
@@ -26,7 +26,7 @@ import java.util.Iterator;
  *
  * @author <a href="mailto:herve.quiroz@esil.univ-mrs.fr">Herve Quiroz</a>
  * @author <a href="mailto:shapira@mpi.com">Yoav Shapira</a>
- * @version $Revision$, $Date$
+ * @version $Id$
  */
 public class StrictConfigurationComparator implements ConfigurationComparator
 {
@@ -57,9 +57,9 @@ public class StrictConfigurationComparat
             return false;
         }
 
-        for (Iterator keys = a.getKeys(); keys.hasNext();)
+        for (Iterator<String> keys = a.getKeys(); keys.hasNext();)
         {
-            String key = (String) keys.next();
+            String key = keys.next();
             Object value = a.getProperty(key);
             if (!value.equals(b.getProperty(key)))
             {
@@ -67,9 +67,9 @@ public class StrictConfigurationComparat
             }
         }
 
-        for (Iterator keys = b.getKeys(); keys.hasNext();)
+        for (Iterator<String> keys = b.getKeys(); keys.hasNext();)
         {
-            String key = (String) keys.next();
+            String key = keys.next();
             Object value = b.getProperty(key);
             if (!value.equals(a.getProperty(key)))
             {



Mime
View raw message