commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1023887 - in /commons/proper/collections/trunk/src/test/org/apache/commons/collections: LocalTestNode.java map/TestListOrderedMap.java splitmap/TestSplitMapUtils.java splitmap/TestTransformedMap.java
Date Mon, 18 Oct 2010 16:25:38 GMT
Author: sebb
Date: Mon Oct 18 16:25:37 2010
New Revision: 1023887

URL: http://svn.apache.org/viewvc?rev=1023887&view=rev
Log:
Fix boxing and some raw types warninga

Modified:
    commons/proper/collections/trunk/src/test/org/apache/commons/collections/LocalTestNode.java
    commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java
    commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestSplitMapUtils.java
    commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestTransformedMap.java

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/LocalTestNode.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/LocalTestNode.java?rev=1023887&r1=1023886&r2=1023887&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/LocalTestNode.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/LocalTestNode.java
Mon Oct 18 16:25:37 2010
@@ -28,6 +28,7 @@ class LocalTestNode<K extends Comparable
     private K key;
     private V value;
 
+    @SuppressWarnings("boxing")
     static LocalTestNode<Integer, String> createLocalTestNode(final int key) {
         return new LocalTestNode<Integer, String>(key, String.valueOf(key));
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java?rev=1023887&r1=1023886&r2=1023887&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java
Mon Oct 18 16:25:37 2010
@@ -307,7 +307,7 @@ public class TestListOrderedMap<K, V> ex
 
     public void testPutAllWithIndex() {
         resetEmpty();
-        ListOrderedMap lom = (ListOrderedMap) map;
+        ListOrderedMap<String, String> lom = (ListOrderedMap<String, String>)
map;
 
         // Create Initial Data
         lom.put("testInsert0", "testInsert0v");
@@ -318,7 +318,7 @@ public class TestListOrderedMap<K, V> ex
         assertEquals("testInsert2v", lom.getValue(2));
 
         // Create New Test Map and Add using putAll(int, Object, Object)
-        Map values = new ListOrderedMap();
+        Map<String, String> values = new ListOrderedMap<String, String>();
         values.put("NewInsert0", "NewInsert0v");
         values.put("NewInsert1", "NewInsert1v");
         lom.putAll(1, values);

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestSplitMapUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestSplitMapUtils.java?rev=1023887&r1=1023886&r2=1023887&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestSplitMapUtils.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestSplitMapUtils.java
Mon Oct 18 16:25:37 2010
@@ -38,6 +38,7 @@ import org.apache.commons.collections.ma
  * @author Stephen Colebourne
  * @author Matt Benson
  */
+@SuppressWarnings("boxing")
 public class TestSplitMapUtils extends BulkTest {
     private Map<String, Integer> backingMap;
     private TransformedMap<String, String, String, Integer> transformedMap;

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestTransformedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestTransformedMap.java?rev=1023887&r1=1023886&r2=1023887&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestTransformedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/splitmap/TestTransformedMap.java
Mon Oct 18 16:25:37 2010
@@ -38,6 +38,7 @@ import org.apache.commons.collections.fu
  * @author Stephen Colebourne
  * @author Matt Benson
  */
+@SuppressWarnings("boxing")
 public class TestTransformedMap extends BulkTest {
 
     private Transformer<Integer, String> intToString = new Transformer<Integer,
String>() {



Mime
View raw message