You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/05/06 00:30:51 UTC

svn commit: r1479412 - /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/TransformedMapTest.java

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()));
     }