commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r620150 - in /commons/proper/configuration/branches/configuration2_experimental/src: main/java/org/apache/commons/configuration2/INIConfiguration.java test/java/org/apache/commons/configuration2/TestINIConfiguration.java
Date Sat, 09 Feb 2008 16:46:03 GMT
Author: oheger
Date: Sat Feb  9 08:46:02 2008
New Revision: 620150

URL: http://svn.apache.org/viewvc?rev=620150&view=rev
Log:
Java 1.5-related changes to INIConfiguration

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
    commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestINIConfiguration.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java?rev=620150&r1=620149&r2=620150&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
Sat Feb  9 08:46:02 2008
@@ -472,11 +472,11 @@
      *
      * @return a set containing the sections.
      */
-    public Set getSections()
+    public Set<String> getSections()
     {
-        Set sections = new TreeSet();
+        Set<String> sections = new TreeSet<String>();
 
-        Iterator keys = getKeys();
+        Iterator<String> keys = getKeys();
         while (keys.hasNext())
         {
             String key = (String) keys.next();

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestINIConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestINIConfiguration.java?rev=620150&r1=620149&r2=620150&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestINIConfiguration.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/TestINIConfiguration.java
Sat Feb  9 08:46:02 2008
@@ -153,10 +153,10 @@
 		INIConfiguration instance = new INIConfiguration();
 		instance.addProperty("test1.foo", "bar");
 		instance.addProperty("test2.foo", "abc");
-		Set expResult = new HashSet();
+		Set<String> expResult = new HashSet<String>();
 		expResult.add("test1");
 		expResult.add("test2");
-		Set result = instance.getSections();
+		Set<String> result = instance.getSections();
 		assertEquals(expResult, result);
 	}
 



Mime
View raw message