commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1353219 - in /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections: iterators/TestCollatingIterator.java map/TestListOrderedMap.java set/TestPredicatedSet.java set/TestPredicatedSortedSet.java
Date Sun, 24 Jun 2012 01:27:23 GMT
Author: sebb
Date: Sun Jun 24 01:27:22 2012
New Revision: 1353219

URL: http://svn.apache.org/viewvc?rev=1353219&view=rev
Log:
Casts away

Modified:
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java?rev=1353219&r1=1353218&r2=1353219&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/iterators/TestCollatingIterator.java
Sun Jun 24 01:27:22 2012
@@ -254,7 +254,7 @@ public class TestCollatingIterator exten
        CollatingIterator<Integer> collatingIterator2 = new CollatingIterator<Integer>(null,
l1.iterator(), l2.iterator());
        collatingIterator2.setComparator(new ComparableComparator<Integer>());
        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());

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java?rev=1353219&r1=1353218&r2=1353219&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestListOrderedMap.java
Sun Jun 24 01:27:22 2012
@@ -51,7 +51,7 @@ public class TestListOrderedMap<K, V> ex
 
     @Override
     public ListOrderedMap<K, V> makeObject() {
-        return (ListOrderedMap<K, V>) ListOrderedMap.listOrderedMap(new HashMap<K,
V>());
+        return ListOrderedMap.listOrderedMap(new HashMap<K, V>());
     }
 
     /**

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java?rev=1353219&r1=1353218&r2=1353219&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSet.java
Sun Jun 24 01:27:22 2012
@@ -42,7 +42,7 @@ public class TestPredicatedSet<E> extend
     protected Predicate<E> truePredicate = TruePredicate.<E>truePredicate();
 
     protected PredicatedSet<E> decorateSet(Set<E> set, Predicate<? super E>
predicate) {
-        return (PredicatedSet<E>) PredicatedSet.predicatedSet(set, predicate);
+        return PredicatedSet.predicatedSet(set, predicate);
     }
 
     @Override

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java?rev=1353219&r1=1353218&r2=1353219&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestPredicatedSortedSet.java
Sun Jun 24 01:27:22 2012
@@ -72,7 +72,7 @@ public class TestPredicatedSortedSet<E> 
         };
 
     protected PredicatedSortedSet<E> makeTestSet() {
-        return (PredicatedSortedSet<E>) PredicatedSortedSet.predicatedSortedSet(new
TreeSet<E>(), testPredicate);
+        return PredicatedSortedSet.predicatedSortedSet(new TreeSet<E>(), testPredicate);
     }
 
     public void testGetSet() {



Mime
View raw message