mirror of
https://github.com/apache/commons-collections.git
synced 2025-03-01 22:39:08 +00:00
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:
parent
def5d54ebe
commit
218ba8fd3b
@ -28,6 +28,7 @@ class LocalTestNode<K extends Comparable<K>, V extends Comparable<V>> implements
|
|||||||
private K key;
|
private K key;
|
||||||
private V value;
|
private V value;
|
||||||
|
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
static LocalTestNode<Integer, String> createLocalTestNode(final int key) {
|
static LocalTestNode<Integer, String> createLocalTestNode(final int key) {
|
||||||
return new LocalTestNode<Integer, String>(key, String.valueOf(key));
|
return new LocalTestNode<Integer, String>(key, String.valueOf(key));
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ public class TestListOrderedMap<K, V> extends AbstractTestOrderedMap<K, V> {
|
|||||||
|
|
||||||
public void testPutAllWithIndex() {
|
public void testPutAllWithIndex() {
|
||||||
resetEmpty();
|
resetEmpty();
|
||||||
ListOrderedMap lom = (ListOrderedMap) map;
|
ListOrderedMap<String, String> lom = (ListOrderedMap<String, String>) map;
|
||||||
|
|
||||||
// Create Initial Data
|
// Create Initial Data
|
||||||
lom.put("testInsert0", "testInsert0v");
|
lom.put("testInsert0", "testInsert0v");
|
||||||
@ -318,7 +318,7 @@ public class TestListOrderedMap<K, V> extends AbstractTestOrderedMap<K, V> {
|
|||||||
assertEquals("testInsert2v", lom.getValue(2));
|
assertEquals("testInsert2v", lom.getValue(2));
|
||||||
|
|
||||||
// Create New Test Map and Add using putAll(int, Object, Object)
|
// 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("NewInsert0", "NewInsert0v");
|
||||||
values.put("NewInsert1", "NewInsert1v");
|
values.put("NewInsert1", "NewInsert1v");
|
||||||
lom.putAll(1, values);
|
lom.putAll(1, values);
|
||||||
|
@ -38,6 +38,7 @@ import org.apache.commons.collections.map.HashedMap;
|
|||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
* @author Matt Benson
|
* @author Matt Benson
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
public class TestSplitMapUtils extends BulkTest {
|
public class TestSplitMapUtils extends BulkTest {
|
||||||
private Map<String, Integer> backingMap;
|
private Map<String, Integer> backingMap;
|
||||||
private TransformedMap<String, String, String, Integer> transformedMap;
|
private TransformedMap<String, String, String, Integer> transformedMap;
|
||||||
|
@ -38,6 +38,7 @@ import org.apache.commons.collections.functors.NOPTransformer;
|
|||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
* @author Matt Benson
|
* @author Matt Benson
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
public class TestTransformedMap extends BulkTest {
|
public class TestTransformedMap extends BulkTest {
|
||||||
|
|
||||||
private Transformer<Integer, String> intToString = new Transformer<Integer, String>() {
|
private Transformer<Integer, String> intToString = new Transformer<Integer, String>() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user