You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2003/12/25 01:46:02 UTC

cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/list SetUniqueList.java FixedSizeList.java

scolebourne    2003/12/24 16:46:02

  Modified:    collections/src/java/org/apache/commons/collections/list
                        SetUniqueList.java FixedSizeList.java
  Log:
  Convert inner classes to package scope so they are not in API at present
  
  Revision  Changes    Path
  1.3       +4 -6      jakarta-commons/collections/src/java/org/apache/commons/collections/list/SetUniqueList.java
  
  Index: SetUniqueList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/SetUniqueList.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SetUniqueList.java	3 Dec 2003 11:37:44 -0000	1.2
  +++ SetUniqueList.java	25 Dec 2003 00:46:02 -0000	1.3
  @@ -307,7 +307,7 @@
       /**
        * Inner class iterator.
        */
  -    protected static class SetListIterator extends AbstractIteratorDecorator {
  +    static class SetListIterator extends AbstractIteratorDecorator {
           
           protected final Set set;
           protected Object last = null;
  @@ -327,13 +327,12 @@
               set.remove(last);
               last = null;
           }
  -
       }
       
       /**
        * Inner class iterator.
        */
  -    protected static class SetListListIterator extends AbstractListIteratorDecorator {
  +    static class SetListListIterator extends AbstractListIteratorDecorator {
           
           protected final Set set;
           protected Object last = null;
  @@ -369,7 +368,6 @@
           public void set(Object object) {
               throw new UnsupportedOperationException("ListIterator does not support set");
           }
  -
       }
       
   }
  
  
  
  1.3       +3 -6      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FixedSizeList.java	11 Dec 2003 23:00:32 -0000	1.2
  +++ FixedSizeList.java	25 Dec 2003 00:46:02 -0000	1.3
  @@ -174,7 +174,7 @@
       /**
        * List iterator that only permits changes via set()
        */
  -    protected static class FixedSizeListIterator extends AbstractListIteratorDecorator {
  +    static class FixedSizeListIterator extends AbstractListIteratorDecorator {
           protected FixedSizeListIterator(ListIterator iterator) {
               super(iterator);
           }
  @@ -182,9 +182,6 @@
               throw new UnsupportedOperationException("List is fixed size");
           }
           public void add(Object object) {
  -            throw new UnsupportedOperationException("List is fixed size");
  -        }
  -        public void remove(Object object) {
               throw new UnsupportedOperationException("List is fixed size");
           }
       }
  
  
  

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