Fix boxing and some raw types warninga

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1023887 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-18 16:25:37 +00:00
parent def5d54ebe
commit 218ba8fd3b
4 changed files with 5 additions and 2 deletions

View File

@ -28,6 +28,7 @@ class LocalTestNode<K extends Comparable<K>, V extends Comparable<V>> implements
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));
}

View File

@ -307,7 +307,7 @@ public class TestListOrderedMap<K, V> extends AbstractTestOrderedMap<K, V> {
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> extends AbstractTestOrderedMap<K, V> {
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);

View File

@ -38,6 +38,7 @@ import org.apache.commons.collections.map.HashedMap;
* @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;

View File

@ -38,6 +38,7 @@ import org.apache.commons.collections.functors.NOPTransformer;
* @author Stephen Colebourne
* @author Matt Benson
*/
@SuppressWarnings("boxing")
public class TestTransformedMap extends BulkTest {
private Transformer<Integer, String> intToString = new Transformer<Integer, String>() {