diff --git a/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java b/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java index 90682fdf8..fb4a73b21 100644 --- a/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java +++ b/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java @@ -335,23 +335,23 @@ public class TestListOrderedMap extends AbstractTestOrderedMap { public void testPutAllWithIndexBug441() { // see COLLECTIONS-441 resetEmpty(); - ListOrderedMap lom = (ListOrderedMap) map; + ListOrderedMap lom = getMap(); int size = 5; for (int i = 0; i < size; i++) { - lom.put(i, true); + lom.put((K) Integer.valueOf(i), (V) Boolean.valueOf(true)); } - HashMap map = new HashMap(); + HashMap map = new HashMap(); for (int i = 0; i < size; i++) { - map.put(i, true); + map.put((K) Integer.valueOf(i), (V) Boolean.valueOf(true)); } lom.putAll(3, map); - List orderedList = lom.asList(); + List orderedList = lom.asList(); for (int i = 0; i < size; i++) { - assertEquals(i, orderedList.get(i).intValue()); + assertEquals(i, orderedList.get(i)); } }