scolebourne 2004/06/02 14:59:50 Modified: collections/src/java/org/apache/commons/collections/list UnmodifiableList.java SetUniqueList.java PredicatedList.java FixedSizeList.java TransformedList.java LazyList.java Log: Make decorator classes serializable, bug 18815 Revision Changes Path 1.6 +6 -2 jakarta-commons/collections/src/java/org/apache/commons/collections/list/UnmodifiableList.java Index: UnmodifiableList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/UnmodifiableList.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- UnmodifiableList.java 18 Feb 2004 01:12:26 -0000 1.5 +++ UnmodifiableList.java 2 Jun 2004 21:59:49 -0000 1.6 @@ -26,13 +26,17 @@ /** * Decorates another <code>List</code> to ensure it can't be altered. + * <p> + * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 * @version $Revision$ $Date$ * * @author Stephen Colebourne */ -public final class UnmodifiableList extends AbstractListDecorator implements Unmodifiable { +public final class UnmodifiableList + extends AbstractSerializableListDecorator + implements Unmodifiable { /** * Factory method to create an unmodifiable list. 1.7 +4 -2 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.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- SetUniqueList.java 18 Feb 2004 01:12:26 -0000 1.6 +++ SetUniqueList.java 2 Jun 2004 21:59:49 -0000 1.7 @@ -39,6 +39,8 @@ * The [EMAIL PROTECTED] org.apache.commons.collections.set.ListOrderedSet ListOrderedSet} * class provides an alternative approach, by wrapping an existing Set and * retaining insertion order in the iterator. + * <p> + * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 * @version $Revision$ $Date$ @@ -46,7 +48,7 @@ * @author Matthew Hawthorne * @author Stephen Colebourne */ -public class SetUniqueList extends AbstractListDecorator { +public class SetUniqueList extends AbstractSerializableListDecorator { /** * Internal Set to maintain uniqueness. 1.5 +3 -1 jakarta-commons/collections/src/java/org/apache/commons/collections/list/PredicatedList.java Index: PredicatedList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/PredicatedList.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- PredicatedList.java 21 May 2004 21:38:40 -0000 1.4 +++ PredicatedList.java 2 Jun 2004 21:59:49 -0000 1.5 @@ -34,6 +34,8 @@ * <p> * One usage would be to ensure that no null entries are added to the list. * <pre>List list = PredicatedList.decorate(new ArrayList(), NotNullPredicate.INSTANCE);</pre> + * <p> + * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 * @version $Revision$ $Date$ 1.7 +6 -2 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.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- FixedSizeList.java 18 Feb 2004 01:12:26 -0000 1.6 +++ FixedSizeList.java 2 Jun 2004 21:59:49 -0000 1.7 @@ -29,6 +29,8 @@ * <p> * The add, remove, clear and retain operations are unsupported. * The set method is allowed (as it doesn't change the list size). + * <p> + * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 * @version $Revision$ $Date$ @@ -36,7 +38,9 @@ * @author Stephen Colebourne * @author Paul Jack */ -public class FixedSizeList extends AbstractListDecorator implements BoundedCollection { +public class FixedSizeList + extends AbstractSerializableListDecorator + implements BoundedCollection { /** * Factory method to create a fixed size list. 1.4 +3 -1 jakarta-commons/collections/src/java/org/apache/commons/collections/list/TransformedList.java Index: TransformedList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/TransformedList.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- TransformedList.java 18 Feb 2004 01:12:26 -0000 1.3 +++ TransformedList.java 2 Jun 2004 21:59:49 -0000 1.4 @@ -30,6 +30,8 @@ * Thus objects must be removed or searched for using their transformed form. * For example, if the transformation converts Strings to Integers, you must * use the Integer form to remove objects. + * <p> + * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 * @version $Revision$ $Date$ 1.5 +4 -2 jakarta-commons/collections/src/java/org/apache/commons/collections/list/LazyList.java Index: LazyList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/LazyList.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- LazyList.java 18 Feb 2004 01:12:26 -0000 1.4 +++ LazyList.java 2 Jun 2004 21:59:49 -0000 1.5 @@ -45,6 +45,8 @@ * a new <code>Date</code> instance. Furthermore, that <code>Date</code> * instance is the fourth element in the list. The first, second, * and third element are all set to <code>null</code>. + * <p> + * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 * @version $Revision$ $Date$ @@ -53,7 +55,7 @@ * @author Arron Bates * @author Paul Jack */ -public class LazyList extends AbstractListDecorator { +public class LazyList extends AbstractSerializableListDecorator { /** The factory to use to lazily instantiate the objects */ protected final Factory factory;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]