commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1026283 - /commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
Date Fri, 22 Oct 2010 10:37:09 GMT
Author: sebb
Date: Fri Oct 22 10:37:09 2010
New Revision: 1026283

URL: http://svn.apache.org/viewvc?rev=1026283&view=rev
Log:
A few raw types

Modified:
    commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java?rev=1026283&r1=1026282&r2=1026283&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
Fri Oct 22 10:37:09 2010
@@ -399,15 +399,15 @@ public class TestMultiValueMap<K, V> ext
 //    }
 
     public void testEmptyMapCompatibility() throws Exception {
-        Map map = makeEmptyMap();
-        Map map2 = (Map) readExternalFormFromDisk(getCanonicalEmptyCollectionName(map));
+        Map<?,?> map = makeEmptyMap();
+        Map<?,?> map2 = (Map<?,?>) readExternalFormFromDisk(getCanonicalEmptyCollectionName(map));
         assertEquals("Map is empty", 0, map2.size());
     }
     public void testFullMapCompatibility() throws Exception {
-        Map map = (Map) makeObject();
-        Map map2 = (Map) readExternalFormFromDisk(getCanonicalFullCollectionName(map));
+        Map<?,?> map = (Map<?,?>) makeObject();
+        Map<?,?> map2 = (Map<?,?>) readExternalFormFromDisk(getCanonicalFullCollectionName(map));
         assertEquals("Map is the right size", map.size(), map2.size());
-        for (Iterator it = map.keySet().iterator(); it.hasNext();) {
+        for (Iterator<?> it = map.keySet().iterator(); it.hasNext();) {
             Object key = it.next();
             assertEquals( "Map had inequal elements", map.get(key), map2.get(key) );
             map2.remove(key);



Mime
View raw message