commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestListUtils.java
Date Mon, 05 May 2003 23:25:23 GMT
rwaldhoff    2003/05/05 16:25:23

  Modified:    collections/src/test/org/apache/commons/collections/primitives
                        TestArrayByteList.java TestFloatArrayList.java
                        TestUnsignedByteArrayList.java
                        TestArrayUnsignedByteList.java
                        TestUnsignedIntArrayList.java
                        TestArrayLongList.java TestArrayFloatList.java
                        TestShortArrayList.java
                        TestUnsignedShortArrayList.java
                        TestArrayUnsignedIntList.java
                        TestArrayUnsignedShortList.java
                        TestIntArrayList.java TestArrayIntList.java
                        TestArrayCharList.java TestArrayShortList.java
                        TestLongArrayList.java TestArrayDoubleList.java
               collections/src/java/org/apache/commons/collections/decorators
                        FixedSizeList.java
                        AbstractListIteratorDecorator.java
                        TypedCollection.java UnmodifiableList.java
                        SynchronizedList.java UnmodifiableCollection.java
                        AbstractListDecorator.java
               collections/src/test/org/apache/commons/collections
                        TestListUtils.java
  Log:
  * clean up unused local variables
  * scrub imports
  
  Revision  Changes    Path
  1.3       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java
  
  Index: TestArrayByteList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestArrayByteList.java	16 Apr 2003 18:38:09 -0000	1.2
  +++ TestArrayByteList.java	5 May 2003 23:25:19 -0000	1.3
  @@ -140,12 +140,12 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayByteList list = new ArrayByteList(0);
  +        assertNotNull(new ArrayByteList(0));
       }
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayByteList list = new ArrayByteList(-1);
  +            new ArrayByteList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -164,7 +164,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayByteList list = new ArrayByteList(null);
  +            new ArrayByteList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.7       +3 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestFloatArrayList.java
  
  Index: TestFloatArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestFloatArrayList.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestFloatArrayList.java	13 Apr 2003 23:05:35 -0000	1.6
  +++ TestFloatArrayList.java	5 May 2003 23:25:19 -0000	1.7
  @@ -97,7 +97,7 @@
       //------------------------------------------------------------------- Tests
   
      public void testZeroInitialCapacityIsValid() {
  -       FloatArrayList list = new FloatArrayList(0);
  +       assertNotNull(new FloatArrayList(0));
      }
   
       public void testAddGet() {
  
  
  
  1.8       +3 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java
  
  Index: TestUnsignedByteArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestUnsignedByteArrayList.java	11 Apr 2003 22:01:25 -0000	1.7
  +++ TestUnsignedByteArrayList.java	5 May 2003 23:25:19 -0000	1.8
  @@ -89,7 +89,7 @@
       //---------------------------------------------------------------- Tests
   
       public void testZeroInitialCapacityIsValid() {
  -        UnsignedByteArrayList list = new UnsignedByteArrayList(0);
  +        assertNotNull(new UnsignedByteArrayList(0));
       }
   
   }
  
  
  
  1.2       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedByteList.java
  
  Index: TestArrayUnsignedByteList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedByteList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayUnsignedByteList.java	11 Apr 2003 21:50:15 -0000	1.1
  +++ TestArrayUnsignedByteList.java	5 May 2003 23:25:19 -0000	1.2
  @@ -134,7 +134,7 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayUnsignedByteList list = new ArrayUnsignedByteList(0);
  +        assertNotNull(new ArrayUnsignedByteList(0));
       }
       
       public void testIllegalArgumentExceptionWhenElementOutOfRange() {
  @@ -157,7 +157,7 @@
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayUnsignedByteList list = new ArrayUnsignedByteList(-1);
  +            new ArrayUnsignedByteList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -176,7 +176,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayUnsignedByteList list = new ArrayUnsignedByteList(null);
  +            new ArrayUnsignedByteList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.8       +3 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java
  
  Index: TestUnsignedIntArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestUnsignedIntArrayList.java	9 Apr 2003 06:44:34 -0000	1.7
  +++ TestUnsignedIntArrayList.java	5 May 2003 23:25:19 -0000	1.8
  @@ -89,7 +89,7 @@
       //---------------------------------------------------------------- Tests
   
       public void testZeroInitialCapacityIsValid() {
  -        UnsignedIntArrayList list = new UnsignedIntArrayList(0);
  +        assertNotNull(new UnsignedIntArrayList(0));
       }
   
   }
  
  
  
  1.2       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayLongList.java
  
  Index: TestArrayLongList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayLongList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayLongList.java	8 Apr 2003 18:24:34 -0000	1.1
  +++ TestArrayLongList.java	5 May 2003 23:25:19 -0000	1.2
  @@ -140,12 +140,12 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayLongList list = new ArrayLongList(0);
  +        assertNotNull(new ArrayLongList(0));
       }
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayLongList list = new ArrayLongList(-1);
  +            new ArrayLongList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -164,7 +164,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayLongList list = new ArrayLongList(null);
  +            new ArrayLongList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.2       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayFloatList.java
  
  Index: TestArrayFloatList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayFloatList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayFloatList.java	13 Apr 2003 22:08:09 -0000	1.1
  +++ TestArrayFloatList.java	5 May 2003 23:25:19 -0000	1.2
  @@ -140,12 +140,12 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayFloatList list = new ArrayFloatList(0);
  +        assertNotNull(new ArrayFloatList(0));
       }
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayFloatList list = new ArrayFloatList(-1);
  +            new ArrayFloatList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -164,7 +164,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayFloatList list = new ArrayFloatList(null);
  +            new ArrayFloatList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.8       +3 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java
  
  Index: TestShortArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestShortArrayList.java	11 Apr 2003 22:01:25 -0000	1.7
  +++ TestShortArrayList.java	5 May 2003 23:25:19 -0000	1.8
  @@ -89,7 +89,7 @@
       //---------------------------------------------------------------- Tests
   
       public void testZeroInitialCapacityIsValid() {
  -        ShortArrayList list = new ShortArrayList(0);
  +        assertNotNull(new ShortArrayList(0));
       }
   
   }
  
  
  
  1.8       +3 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java
  
  Index: TestUnsignedShortArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestUnsignedShortArrayList.java	9 Apr 2003 06:44:34 -0000	1.7
  +++ TestUnsignedShortArrayList.java	5 May 2003 23:25:21 -0000	1.8
  @@ -89,7 +89,7 @@
       //---------------------------------------------------------------- Tests
   
       public void testZeroInitialCapacityIsValid() {
  -        UnsignedShortArrayList list = new UnsignedShortArrayList(0);
  +        assertNotNull(new UnsignedShortArrayList(0));
       }
   
   }
  
  
  
  1.2       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedIntList.java
  
  Index: TestArrayUnsignedIntList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedIntList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayUnsignedIntList.java	9 Apr 2003 06:44:34 -0000	1.1
  +++ TestArrayUnsignedIntList.java	5 May 2003 23:25:21 -0000	1.2
  @@ -134,7 +134,7 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayUnsignedIntList list = new ArrayUnsignedIntList(0);
  +        assertNotNull(new ArrayUnsignedIntList(0));
       }
       
       public void testIllegalArgumentExceptionWhenElementOutOfRange() {
  @@ -157,7 +157,7 @@
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayUnsignedIntList list = new ArrayUnsignedIntList(-1);
  +            new ArrayUnsignedIntList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -176,7 +176,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayUnsignedIntList list = new ArrayUnsignedIntList(null);
  +            new ArrayUnsignedIntList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.12      +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedShortList.java
  
  Index: TestArrayUnsignedShortList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedShortList.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestArrayUnsignedShortList.java	5 Mar 2003 19:10:50 -0000	1.11
  +++ TestArrayUnsignedShortList.java	5 May 2003 23:25:21 -0000	1.12
  @@ -126,7 +126,7 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayUnsignedShortList list = new ArrayUnsignedShortList(0);
  +        assertNotNull(new ArrayUnsignedShortList(0));
       }
       
       public void testIllegalArgumentExceptionWhenElementOutOfRange() {
  @@ -149,7 +149,7 @@
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayUnsignedShortList list = new ArrayUnsignedShortList(-1);
  +            new ArrayUnsignedShortList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -168,7 +168,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayUnsignedShortList list = new ArrayUnsignedShortList(null);
  +            new ArrayUnsignedShortList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.8       +3 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java
  
  Index: TestIntArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestIntArrayList.java	9 Apr 2003 06:44:34 -0000	1.7
  +++ TestIntArrayList.java	5 May 2003 23:25:21 -0000	1.8
  @@ -89,7 +89,7 @@
       //---------------------------------------------------------------- Tests
   
       public void testZeroInitialCapacityIsValid() {
  -        IntArrayList list = new IntArrayList(0);
  +        assertNotNull(new IntArrayList(0));
       }
   
   }
  
  
  
  1.12      +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayIntList.java
  
  Index: TestArrayIntList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayIntList.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestArrayIntList.java	5 Mar 2003 19:10:50 -0000	1.11
  +++ TestArrayIntList.java	5 May 2003 23:25:21 -0000	1.12
  @@ -140,12 +140,12 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayIntList list = new ArrayIntList(0);
  +        assertNotNull(new ArrayIntList(0));
       }
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayIntList list = new ArrayIntList(-1);
  +            new ArrayIntList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -164,7 +164,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayIntList list = new ArrayIntList(null);
  +            new ArrayIntList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.2       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayCharList.java
  
  Index: TestArrayCharList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayCharList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayCharList.java	16 Apr 2003 18:32:40 -0000	1.1
  +++ TestArrayCharList.java	5 May 2003 23:25:21 -0000	1.2
  @@ -140,12 +140,12 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayCharList list = new ArrayCharList(0);
  +        assertNotNull(new ArrayCharList(0));
       }
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayCharList list = new ArrayCharList(-1);
  +            new ArrayCharList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -164,7 +164,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayCharList list = new ArrayCharList(null);
  +            new ArrayCharList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.2       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayShortList.java
  
  Index: TestArrayShortList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayShortList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayShortList.java	11 Apr 2003 00:55:36 -0000	1.1
  +++ TestArrayShortList.java	5 May 2003 23:25:21 -0000	1.2
  @@ -140,12 +140,12 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayShortList list = new ArrayShortList(0);
  +        assertNotNull(new ArrayShortList(0));
       }
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayShortList list = new ArrayShortList(-1);
  +            new ArrayShortList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -164,7 +164,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayShortList list = new ArrayShortList(null);
  +            new ArrayShortList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.8       +3 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java
  
  Index: TestLongArrayList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestLongArrayList.java	9 Apr 2003 06:44:34 -0000	1.7
  +++ TestLongArrayList.java	5 May 2003 23:25:21 -0000	1.8
  @@ -89,7 +89,7 @@
       //---------------------------------------------------------------- Tests
   
       public void testZeroInitialCapacityIsValid() {
  -        LongArrayList list = new LongArrayList(0);
  +        assertNotNull(new LongArrayList(0));
       }
   
   }
  
  
  
  1.2       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayDoubleList.java
  
  Index: TestArrayDoubleList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/TestArrayDoubleList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestArrayDoubleList.java	15 Apr 2003 00:11:20 -0000	1.1
  +++ TestArrayDoubleList.java	5 May 2003 23:25:21 -0000	1.2
  @@ -140,12 +140,12 @@
       }
   
       public void testZeroInitialCapacityIsValid() {
  -        ArrayDoubleList list = new ArrayDoubleList(0);
  +        assertNotNull(new ArrayDoubleList(0));
       }
   
       public void testNegativeInitialCapacityIsInvalid() {
           try {
  -            ArrayDoubleList list = new ArrayDoubleList(-1);
  +            new ArrayDoubleList(-1);
               fail("Expected IllegalArgumentException");
           } catch(IllegalArgumentException e) {
               // expected
  @@ -164,7 +164,7 @@
   
       public void testCopyConstructorWithNull() {
           try {
  -            ArrayDoubleList list = new ArrayDoubleList(null);
  +            new ArrayDoubleList(null);
               fail("Expected NullPointerException");
           } catch(NullPointerException e) {
               // expected
  
  
  
  1.2       +2 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/FixedSizeList.java
  
  Index: FixedSizeList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/FixedSizeList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FixedSizeList.java	29 Apr 2003 18:43:47 -0000	1.1
  +++ FixedSizeList.java	5 May 2003 23:25:22 -0000	1.2
  @@ -58,11 +58,8 @@
   package org.apache.commons.collections.decorators;
   
   import java.util.Collection;
  -import java.util.Iterator;
   import java.util.List;
   import java.util.ListIterator;
  -
  -import org.apache.commons.collections.Predicate;
   
   /**
    * <code>FixedSizeList</code> decorates another <code>List</code>
to
  
  
  
  1.2       +2 -7      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/AbstractListIteratorDecorator.java
  
  Index: AbstractListIteratorDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/AbstractListIteratorDecorator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractListIteratorDecorator.java	29 Apr 2003 18:43:47 -0000	1.1
  +++ AbstractListIteratorDecorator.java	5 May 2003 23:25:22 -0000	1.2
  @@ -57,12 +57,7 @@
    */
   package org.apache.commons.collections.decorators;
   
  -import java.util.Collection;
  -import java.util.Iterator;
  -import java.util.List;
   import java.util.ListIterator;
  -
  -import org.apache.commons.collections.Predicate;
   
   /**
    * <code>AbstractListIteratorDecorator</code> decorates another 
  
  
  
  1.2       +2 -3      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/TypedCollection.java
  
  Index: TypedCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/TypedCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TypedCollection.java	29 Apr 2003 18:43:47 -0000	1.1
  +++ TypedCollection.java	5 May 2003 23:25:22 -0000	1.2
  @@ -58,7 +58,6 @@
   package org.apache.commons.collections.decorators;
   
   import java.util.Collection;
  -import java.util.Iterator;
   
   import org.apache.commons.collections.Predicate;
   
  
  
  
  1.2       +2 -4      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableList.java
  
  Index: UnmodifiableList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UnmodifiableList.java	29 Apr 2003 18:43:47 -0000	1.1
  +++ UnmodifiableList.java	5 May 2003 23:25:22 -0000	1.2
  @@ -58,12 +58,10 @@
   package org.apache.commons.collections.decorators;
   
   import java.util.Collection;
  -import java.util.Iterator;
   import java.util.List;
   import java.util.ListIterator;
   
   import org.apache.commons.collections.IteratorUtils;
  -import org.apache.commons.collections.Predicate;
   
   /**
    * <code>UnmodifiableList</code> decorates another <code>List</code>
to
  
  
  
  1.2       +2 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/SynchronizedList.java
  
  Index: SynchronizedList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/SynchronizedList.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SynchronizedList.java	29 Apr 2003 18:43:47 -0000	1.1
  +++ SynchronizedList.java	5 May 2003 23:25:22 -0000	1.2
  @@ -58,11 +58,8 @@
   package org.apache.commons.collections.decorators;
   
   import java.util.Collection;
  -import java.util.Iterator;
   import java.util.List;
   import java.util.ListIterator;
  -
  -import org.apache.commons.collections.Predicate;
   
   /**
    * <code>SynchronizedList</code> decorates another <code>List</code>.
  
  
  
  1.2       +2 -3      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableCollection.java
  
  Index: UnmodifiableCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/UnmodifiableCollection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UnmodifiableCollection.java	29 Apr 2003 18:43:47 -0000	1.1
  +++ UnmodifiableCollection.java	5 May 2003 23:25:22 -0000	1.2
  @@ -61,7 +61,6 @@
   import java.util.Iterator;
   
   import org.apache.commons.collections.IteratorUtils;
  -import org.apache.commons.collections.Predicate;
   
   /**
    * <code>PredicatedCollection</code> decorates another <code>Collection</code>
  
  
  
  1.2       +2 -5      jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/AbstractListDecorator.java
  
  Index: AbstractListDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/decorators/AbstractListDecorator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractListDecorator.java	29 Apr 2003 18:43:47 -0000	1.1
  +++ AbstractListDecorator.java	5 May 2003 23:25:22 -0000	1.2
  @@ -58,11 +58,8 @@
   package org.apache.commons.collections.decorators;
   
   import java.util.Collection;
  -import java.util.Iterator;
   import java.util.List;
   import java.util.ListIterator;
  -
  -import org.apache.commons.collections.Predicate;
   
   /**
    * <code>AbstractListDecorator</code> decorates another <code>List</code>.
  
  
  
  1.9       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/TestListUtils.java
  
  Index: TestListUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestListUtils.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- TestListUtils.java	9 Apr 2003 23:38:26 -0000	1.8
  +++ TestListUtils.java	5 May 2003 23:25:22 -0000	1.9
  @@ -153,10 +153,10 @@
               }
           });
   
  -        Integer I = (Integer)list.get(5);
  +        assertNotNull((Integer)list.get(5));
           assertEquals(6, list.size());
   
  -        I = (Integer)list.get(5);
  +        assertNotNull((Integer)list.get(5));
           assertEquals(6, list.size());
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message