commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1479412 - /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedMapTest.java
Date Sun, 05 May 2013 22:30:51 GMT
Author: sebb
Date: Sun May  5 22:30:51 2013
New Revision: 1479412

URL: http://svn.apache.org/r1479412
Log:
Fix up a raw type
TODO: the whole test class looks wrong - why is it parameterised? If does not seem to have
a specific instantiation

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

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedMapTest.java?rev=1479412&r1=1479411&r2=1479412&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedMapTest.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedMapTest.java
Sun May  5 22:30:51 2013
@@ -88,8 +88,8 @@ public class TransformedMapTest<K, V> ex
         assertEquals(Integer.valueOf(66), array[0].getValue());
         assertEquals(Integer.valueOf(66), map.get(array[0].getKey()));
 
-        final Map.Entry entry = entrySet.iterator().next();
-        entry.setValue("88");
+        final Map.Entry<K, V> entry = entrySet.iterator().next();
+        entry.setValue((V) "88");
         assertEquals(Integer.valueOf(88), entry.getValue());
         assertEquals(Integer.valueOf(88), map.get(entry.getKey()));
     }



Mime
View raw message