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/collection AbstractCollectionDecorator.java
Date Wed, 02 Jun 2004 21:53:03 GMT
scolebourne    2004/06/02 14:53:03

  Modified:    collections/src/java/org/apache/commons/collections/buffer
                        AbstractBufferDecorator.java
               collections/src/java/org/apache/commons/collections/bag
                        AbstractSortedBagDecorator.java
                        AbstractBagDecorator.java
               collections/src/java/org/apache/commons/collections/list
                        AbstractListDecorator.java
               collections/src/java/org/apache/commons/collections/set
                        AbstractSetDecorator.java
                        AbstractSortedSetDecorator.java
               collections/src/java/org/apache/commons/collections/collection
                        AbstractCollectionDecorator.java
  Log:
  Make decorator classes serializable, bug 18815
  
  Revision  Changes    Path
  1.4       +9 -1      jakarta-commons/collections/src/java/org/apache/commons/collections/buffer/AbstractBufferDecorator.java
  
  Index: AbstractBufferDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/buffer/AbstractBufferDecorator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractBufferDecorator.java	18 Feb 2004 00:58:18 -0000	1.3
  +++ AbstractBufferDecorator.java	2 Jun 2004 21:53:02 -0000	1.4
  @@ -31,6 +31,14 @@
   public abstract class AbstractBufferDecorator extends AbstractCollectionDecorator implements
Buffer {
   
       /**
  +     * Constructor only used in deserialization, do not use otherwise.
  +     * @since Commons Collections 3.1
  +     */
  +    protected AbstractBufferDecorator() {
  +        super();
  +    }
  +
  +    /**
        * Constructor that wraps (not copies).
        * 
        * @param buffer  the buffer to decorate, must not be null
  
  
  
  1.5       +9 -1      jakarta-commons/collections/src/java/org/apache/commons/collections/bag/AbstractSortedBagDecorator.java
  
  Index: AbstractSortedBagDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/bag/AbstractSortedBagDecorator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractSortedBagDecorator.java	18 Feb 2004 00:56:25 -0000	1.4
  +++ AbstractSortedBagDecorator.java	2 Jun 2004 21:53:02 -0000	1.5
  @@ -33,6 +33,14 @@
           extends AbstractBagDecorator implements SortedBag {
   
       /**
  +     * Constructor only used in deserialization, do not use otherwise.
  +     * @since Commons Collections 3.1
  +     */
  +    protected AbstractSortedBagDecorator() {
  +        super();
  +    }
  +
  +    /**
        * Constructor that wraps (not copies).
        * 
        * @param bag  the bag to decorate, must not be null
  
  
  
  1.5       +9 -1      jakarta-commons/collections/src/java/org/apache/commons/collections/bag/AbstractBagDecorator.java
  
  Index: AbstractBagDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/bag/AbstractBagDecorator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractBagDecorator.java	18 Feb 2004 00:56:25 -0000	1.4
  +++ AbstractBagDecorator.java	2 Jun 2004 21:53:02 -0000	1.5
  @@ -34,6 +34,14 @@
           extends AbstractCollectionDecorator implements Bag {
   
       /**
  +     * Constructor only used in deserialization, do not use otherwise.
  +     * @since Commons Collections 3.1
  +     */
  +    protected AbstractBagDecorator() {
  +        super();
  +    }
  +
  +    /**
        * Constructor that wraps (not copies).
        * 
        * @param bag  the bag to decorate, must not be null
  
  
  
  1.4       +9 -1      jakarta-commons/collections/src/java/org/apache/commons/collections/list/AbstractListDecorator.java
  
  Index: AbstractListDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/AbstractListDecorator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractListDecorator.java	18 Feb 2004 01:12:26 -0000	1.3
  +++ AbstractListDecorator.java	2 Jun 2004 21:53:02 -0000	1.4
  @@ -34,6 +34,14 @@
   public abstract class AbstractListDecorator extends AbstractCollectionDecorator implements
List {
   
       /**
  +     * Constructor only used in deserialization, do not use otherwise.
  +     * @since Commons Collections 3.1
  +     */
  +    protected AbstractListDecorator() {
  +        super();
  +    }
  +
  +    /**
        * Constructor that wraps (not copies).
        * 
        * @param list  the list to decorate, must not be null
  
  
  
  1.4       +9 -1      jakarta-commons/collections/src/java/org/apache/commons/collections/set/AbstractSetDecorator.java
  
  Index: AbstractSetDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/set/AbstractSetDecorator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractSetDecorator.java	18 Feb 2004 01:14:27 -0000	1.3
  +++ AbstractSetDecorator.java	2 Jun 2004 21:53:03 -0000	1.4
  @@ -32,6 +32,14 @@
   public abstract class AbstractSetDecorator extends AbstractCollectionDecorator implements
Set {
   
       /**
  +     * Constructor only used in deserialization, do not use otherwise.
  +     * @since Commons Collections 3.1
  +     */
  +    protected AbstractSetDecorator() {
  +        super();
  +    }
  +
  +    /**
        * Constructor that wraps (not copies).
        * 
        * @param set  the set to decorate, must not be null
  
  
  
  1.4       +9 -1      jakarta-commons/collections/src/java/org/apache/commons/collections/set/AbstractSortedSetDecorator.java
  
  Index: AbstractSortedSetDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/set/AbstractSortedSetDecorator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractSortedSetDecorator.java	18 Feb 2004 01:14:27 -0000	1.3
  +++ AbstractSortedSetDecorator.java	2 Jun 2004 21:53:03 -0000	1.4
  @@ -32,6 +32,14 @@
   public abstract class AbstractSortedSetDecorator extends AbstractSetDecorator implements
SortedSet {
   
       /**
  +     * Constructor only used in deserialization, do not use otherwise.
  +     * @since Commons Collections 3.1
  +     */
  +    protected AbstractSortedSetDecorator() {
  +        super();
  +    }
  +
  +    /**
        * Constructor that wraps (not copies).
        * 
        * @param set  the set to decorate, must not be null
  
  
  
  1.4       +10 -2     jakarta-commons/collections/src/java/org/apache/commons/collections/collection/AbstractCollectionDecorator.java
  
  Index: AbstractCollectionDecorator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/collection/AbstractCollectionDecorator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractCollectionDecorator.java	18 Feb 2004 00:58:53 -0000	1.3
  +++ AbstractCollectionDecorator.java	2 Jun 2004 21:53:03 -0000	1.4
  @@ -42,7 +42,15 @@
   public abstract class AbstractCollectionDecorator implements Collection {
   
       /** The collection being decorated */
  -    protected final Collection collection;
  +    protected Collection collection;
  +
  +    /**
  +     * Constructor only used in deserialization, do not use otherwise.
  +     * @since Commons Collections 3.1
  +     */
  +    protected AbstractCollectionDecorator() {
  +        super();
  +    }
   
       /**
        * Constructor that wraps (not copies).
  
  
  

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