commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1221893 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/ConfigurationAssert.java
Date Wed, 21 Dec 2011 21:34:39 GMT
Author: oheger
Date: Wed Dec 21 21:34:38 2011
New Revision: 1221893

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

Modified:
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/ConfigurationAssert.java

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/ConfigurationAssert.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/ConfigurationAssert.java?rev=1221893&r1=1221892&r2=1221893&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/ConfigurationAssert.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/ConfigurationAssert.java
Wed Dec 21 21:34:38 2011
@@ -54,26 +54,26 @@ public class ConfigurationAssert
     public static void assertEquals(Configuration expected, Configuration actual)
     {
         // check that the actual configuration contains all the properties of the expected
configuration
-        for (Iterator it = expected.getKeys(); it.hasNext();)
+        for (Iterator<String> it = expected.getKeys(); it.hasNext();)
         {
-            String key = (String) it.next();
+            String key = it.next();
             Assert.assertTrue("The actual configuration doesn't contain the expected key
'" + key + "'", actual.containsKey(key));
             Assert.assertEquals("Value of the '" + key + "' property", expected.getProperty(key),
actual.getProperty(key));
         }
 
         // check that the actual configuration has no extra properties
-        for (Iterator it = actual.getKeys(); it.hasNext();)
+        for (Iterator<String> it = actual.getKeys(); it.hasNext();)
         {
-            String key = (String) it.next();
+            String key = it.next();
             Assert.assertTrue("The actual configuration contains an extra key '" + key +
"'", expected.containsKey(key));
         }
     }
 
     /**
-     * Returns a <code>File</code> object for the specified test file.
+     * Returns a {@code File} object for the specified test file.
      *
      * @param name the name of the test file
-     * @return a <code>File</code> object pointing to that test file
+     * @return a {@code File} object pointing to that test file
      */
     public static File getTestFile(String name)
     {
@@ -81,10 +81,10 @@ public class ConfigurationAssert
     }
 
     /**
-     * Returns a <code>File</code> object for the specified out file.
+     * Returns a {@code File} object for the specified out file.
      *
      * @param name the name of the out file
-     * @return a <code>File</code> object pointing to that out file
+     * @return a {@code File} object pointing to that out file
      */
     public static File getOutFile(String name)
     {



Mime
View raw message