commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/list FixedSizeList.java
Date Thu, 25 Dec 2003 01:25:06 GMT
scolebourne    2003/12/24 17:25:06

  Modified:    collections/src/java/org/apache/commons/collections/list
                        FixedSizeList.java
  Log:
  Use unmodifiable iterator directly
  
  Revision  Changes    Path
  1.4       +4 -4      jakarta-commons/collections/src/java/org/apache/commons/collections/list/FixedSizeList.java
  
  Index: FixedSizeList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/FixedSizeList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FixedSizeList.java	25 Dec 2003 00:46:02 -0000	1.3
  +++ FixedSizeList.java	25 Dec 2003 01:25:06 -0000	1.4
  @@ -63,8 +63,8 @@
   import java.util.ListIterator;
   
   import org.apache.commons.collections.BoundedCollection;
  -import org.apache.commons.collections.IteratorUtils;
   import org.apache.commons.collections.iterators.AbstractListIteratorDecorator;
  +import org.apache.commons.collections.iterators.UnmodifiableIterator;
   
   /**
    * Decorates another <code>List</code> to fix the size preventing add/remove.
  @@ -131,7 +131,7 @@
       }
   
       public Iterator iterator() {
  -        return IteratorUtils.unmodifiableIterator(getCollection().iterator());
  +        return UnmodifiableIterator.decorate(getCollection().iterator());
       }
   
       public int lastIndexOf(Object object) {
  
  
  

---------------------------------------------------------------------
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