From 9979f0c49396693386b6a943409f77849d04623e Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 24 Jun 2012 01:27:22 +0000 Subject: [PATCH] Casts away git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1353219 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections/iterators/TestCollatingIterator.java | 2 +- .../org/apache/commons/collections/map/TestListOrderedMap.java | 2 +- .../org/apache/commons/collections/set/TestPredicatedSet.java | 2 +- .../apache/commons/collections/set/TestPredicatedSortedSet.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java b/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java index ce7a812fd..b0c8ac4a9 100644 --- a/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java +++ b/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java @@ -254,7 +254,7 @@ public class TestCollatingIterator extends AbstractTestIterator { CollatingIterator collatingIterator2 = new CollatingIterator(null, l1.iterator(), l2.iterator()); collatingIterator2.setComparator(new ComparableComparator()); for ( ; collatingIterator2.hasNext(); i++ ) { - Integer n = (Integer)collatingIterator2.next(); + Integer n = collatingIterator2.next(); assertEquals("wrong order", (int)n, i + 1); } assertEquals("wrong size", i, l1.size() + l2.size()); 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 88552f548..4ba6631e6 100644 --- a/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java +++ b/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java @@ -51,7 +51,7 @@ public class TestListOrderedMap extends AbstractTestOrderedMap { @Override public ListOrderedMap makeObject() { - return (ListOrderedMap) ListOrderedMap.listOrderedMap(new HashMap()); + return ListOrderedMap.listOrderedMap(new HashMap()); } /** diff --git a/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java b/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java index 4b487479e..b3eeb0430 100644 --- a/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java +++ b/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java @@ -42,7 +42,7 @@ public class TestPredicatedSet extends AbstractTestSet { protected Predicate truePredicate = TruePredicate.truePredicate(); protected PredicatedSet decorateSet(Set set, Predicate predicate) { - return (PredicatedSet) PredicatedSet.predicatedSet(set, predicate); + return PredicatedSet.predicatedSet(set, predicate); } @Override diff --git a/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java b/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java index 1be0fa06d..638def6c8 100644 --- a/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java +++ b/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java @@ -72,7 +72,7 @@ public class TestPredicatedSortedSet extends AbstractTestSortedSet { }; protected PredicatedSortedSet makeTestSet() { - return (PredicatedSortedSet) PredicatedSortedSet.predicatedSortedSet(new TreeSet(), testPredicate); + return PredicatedSortedSet.predicatedSortedSet(new TreeSet(), testPredicate); } public void testGetSet() {