From 457467bbc430e5b8357a2430b762d4b63db30055 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Thu, 3 Jun 2004 22:02:13 +0000 Subject: [PATCH] Make decorator classes serializable, bug 18815 git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131769 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/collections/bag/PredicatedBag.java | 5 ++++- .../commons/collections/bag/PredicatedSortedBag.java | 5 ++++- .../apache/commons/collections/bag/SynchronizedBag.java | 5 ++++- .../commons/collections/bag/SynchronizedSortedBag.java | 5 ++++- .../org/apache/commons/collections/bag/TransformedBag.java | 5 ++++- .../commons/collections/bag/TransformedSortedBag.java | 5 ++++- .../apache/commons/collections/buffer/BlockingBuffer.java | 7 +++++-- .../commons/collections/buffer/CircularFifoBuffer.java | 5 ++++- .../commons/collections/buffer/PredicatedBuffer.java | 5 ++++- .../commons/collections/buffer/SynchronizedBuffer.java | 5 ++++- .../commons/collections/buffer/TransformedBuffer.java | 5 ++++- .../collections/collection/PredicatedCollection.java | 5 ++++- .../collections/collection/SynchronizedCollection.java | 3 ++- .../collections/collection/TransformedCollection.java | 5 ++++- .../collection/UnmodifiableBoundedCollection.java | 7 +++++-- .../collections/collection/UnmodifiableCollection.java | 5 ++++- .../org/apache/commons/collections/list/FixedSizeList.java | 5 ++++- src/java/org/apache/commons/collections/list/LazyList.java | 7 +++++-- .../apache/commons/collections/list/PredicatedList.java | 5 ++++- .../org/apache/commons/collections/list/SetUniqueList.java | 5 ++++- .../apache/commons/collections/list/SynchronizedList.java | 5 ++++- .../apache/commons/collections/list/TransformedList.java | 5 ++++- .../apache/commons/collections/list/UnmodifiableList.java | 5 ++++- .../org/apache/commons/collections/set/ListOrderedSet.java | 5 ++++- .../org/apache/commons/collections/set/PredicatedSet.java | 5 ++++- .../commons/collections/set/PredicatedSortedSet.java | 5 ++++- .../apache/commons/collections/set/SynchronizedSet.java | 5 ++++- .../commons/collections/set/SynchronizedSortedSet.java | 5 ++++- .../org/apache/commons/collections/set/TransformedSet.java | 5 ++++- .../commons/collections/set/TransformedSortedSet.java | 5 ++++- .../apache/commons/collections/set/UnmodifiableSet.java | 5 ++++- 31 files changed, 125 insertions(+), 34 deletions(-) diff --git a/src/java/org/apache/commons/collections/bag/PredicatedBag.java b/src/java/org/apache/commons/collections/bag/PredicatedBag.java index c8f40f877..81cab3834 100644 --- a/src/java/org/apache/commons/collections/bag/PredicatedBag.java +++ b/src/java/org/apache/commons/collections/bag/PredicatedBag.java @@ -35,7 +35,7 @@ import org.apache.commons.collections.collection.PredicatedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/02 21:56:19 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:12 $ * * @author Stephen Colebourne * @author Paul Jack @@ -43,6 +43,9 @@ import org.apache.commons.collections.collection.PredicatedCollection; public class PredicatedBag extends PredicatedCollection implements Bag { + /** Serialization version */ + private static final long serialVersionUID = -2575833140344736876L; + /** * Factory method to create a predicated (validating) bag. *

diff --git a/src/java/org/apache/commons/collections/bag/PredicatedSortedBag.java b/src/java/org/apache/commons/collections/bag/PredicatedSortedBag.java index b0bdc89b4..83efa52eb 100644 --- a/src/java/org/apache/commons/collections/bag/PredicatedSortedBag.java +++ b/src/java/org/apache/commons/collections/bag/PredicatedSortedBag.java @@ -34,7 +34,7 @@ import org.apache.commons.collections.SortedBag; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/02 21:56:19 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:12 $ * * @author Stephen Colebourne * @author Paul Jack @@ -42,6 +42,9 @@ import org.apache.commons.collections.SortedBag; public class PredicatedSortedBag extends PredicatedBag implements SortedBag { + /** Serialization version */ + private static final long serialVersionUID = 3448581314086406616L; + /** * Factory method to create a predicated (validating) bag. *

diff --git a/src/java/org/apache/commons/collections/bag/SynchronizedBag.java b/src/java/org/apache/commons/collections/bag/SynchronizedBag.java index eeebdb709..41417cf6b 100644 --- a/src/java/org/apache/commons/collections/bag/SynchronizedBag.java +++ b/src/java/org/apache/commons/collections/bag/SynchronizedBag.java @@ -31,13 +31,16 @@ import org.apache.commons.collections.set.SynchronizedSet; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/01 23:05:48 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:12 $ * * @author Stephen Colebourne */ public class SynchronizedBag extends SynchronizedCollection implements Bag { + /** Serialization version */ + private static final long serialVersionUID = 8084674570753837109L; + /** * Factory method to create a synchronized bag. * diff --git a/src/java/org/apache/commons/collections/bag/SynchronizedSortedBag.java b/src/java/org/apache/commons/collections/bag/SynchronizedSortedBag.java index be1a596fc..c4242a299 100644 --- a/src/java/org/apache/commons/collections/bag/SynchronizedSortedBag.java +++ b/src/java/org/apache/commons/collections/bag/SynchronizedSortedBag.java @@ -30,13 +30,16 @@ import org.apache.commons.collections.SortedBag; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/01 23:05:48 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:12 $ * * @author Stephen Colebourne */ public class SynchronizedSortedBag extends SynchronizedBag implements SortedBag { + /** Serialization version */ + private static final long serialVersionUID = 722374056718497858L; + /** * Factory method to create a synchronized sorted bag. * diff --git a/src/java/org/apache/commons/collections/bag/TransformedBag.java b/src/java/org/apache/commons/collections/bag/TransformedBag.java index e2bc61959..02b0da05c 100644 --- a/src/java/org/apache/commons/collections/bag/TransformedBag.java +++ b/src/java/org/apache/commons/collections/bag/TransformedBag.java @@ -33,13 +33,16 @@ import org.apache.commons.collections.set.TransformedSet; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/02 21:56:19 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:12 $ * * @author Stephen Colebourne */ public class TransformedBag extends TransformedCollection implements Bag { + /** Serialization version */ + private static final long serialVersionUID = 5421170911299074185L; + /** * Factory method to create a transforming bag. *

diff --git a/src/java/org/apache/commons/collections/bag/TransformedSortedBag.java b/src/java/org/apache/commons/collections/bag/TransformedSortedBag.java index b99806f45..ae629cf16 100644 --- a/src/java/org/apache/commons/collections/bag/TransformedSortedBag.java +++ b/src/java/org/apache/commons/collections/bag/TransformedSortedBag.java @@ -31,13 +31,16 @@ import org.apache.commons.collections.Transformer; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/02 21:56:19 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:12 $ * * @author Stephen Colebourne */ public class TransformedSortedBag extends TransformedBag implements SortedBag { + /** Serialization version */ + private static final long serialVersionUID = -251737742649401930L; + /** * Factory method to create a transforming sorted bag. *

diff --git a/src/java/org/apache/commons/collections/buffer/BlockingBuffer.java b/src/java/org/apache/commons/collections/buffer/BlockingBuffer.java index 6e077cc12..6b4194428 100644 --- a/src/java/org/apache/commons/collections/buffer/BlockingBuffer.java +++ b/src/java/org/apache/commons/collections/buffer/BlockingBuffer.java @@ -37,14 +37,17 @@ import org.apache.commons.collections.BufferUnderflowException; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/01 23:05:49 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Janek Bogucki * @author Phil Steitz */ public class BlockingBuffer extends SynchronizedBuffer { - + + /** Serialization version */ + private static final long serialVersionUID = 1719328905017860541L; + /** * Factory method to create a blocking buffer. * diff --git a/src/java/org/apache/commons/collections/buffer/CircularFifoBuffer.java b/src/java/org/apache/commons/collections/buffer/CircularFifoBuffer.java index 874b4b945..016970d46 100644 --- a/src/java/org/apache/commons/collections/buffer/CircularFifoBuffer.java +++ b/src/java/org/apache/commons/collections/buffer/CircularFifoBuffer.java @@ -40,13 +40,16 @@ import java.util.Collection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/06/02 23:12:44 $ + * @version $Revision: 1.5 $ $Date: 2004/06/03 22:02:13 $ * * @author Stefano Fornari * @author Stephen Colebourne */ public class CircularFifoBuffer extends BoundedFifoBuffer { + /** Serialization version */ + private static final long serialVersionUID = -8423413834657610406L; + /** * Constructor that creates a buffer with the default size of 32. */ diff --git a/src/java/org/apache/commons/collections/buffer/PredicatedBuffer.java b/src/java/org/apache/commons/collections/buffer/PredicatedBuffer.java index b069559d8..c484c02be 100644 --- a/src/java/org/apache/commons/collections/buffer/PredicatedBuffer.java +++ b/src/java/org/apache/commons/collections/buffer/PredicatedBuffer.java @@ -33,13 +33,16 @@ import org.apache.commons.collections.collection.PredicatedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/02 21:57:03 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Paul Jack */ public class PredicatedBuffer extends PredicatedCollection implements Buffer { + /** Serialization version */ + private static final long serialVersionUID = 2307609000539943581L; + /** * Factory method to create a predicated (validating) buffer. *

diff --git a/src/java/org/apache/commons/collections/buffer/SynchronizedBuffer.java b/src/java/org/apache/commons/collections/buffer/SynchronizedBuffer.java index d98d6e263..3b5a048ef 100644 --- a/src/java/org/apache/commons/collections/buffer/SynchronizedBuffer.java +++ b/src/java/org/apache/commons/collections/buffer/SynchronizedBuffer.java @@ -27,12 +27,15 @@ import org.apache.commons.collections.collection.SynchronizedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.5 $ $Date: 2004/06/01 23:05:49 $ + * @version $Revision: 1.6 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class SynchronizedBuffer extends SynchronizedCollection implements Buffer { + /** Serialization version */ + private static final long serialVersionUID = -6859936183953626253L; + /** * Factory method to create a synchronized buffer. * diff --git a/src/java/org/apache/commons/collections/buffer/TransformedBuffer.java b/src/java/org/apache/commons/collections/buffer/TransformedBuffer.java index 180486aef..394aaed11 100644 --- a/src/java/org/apache/commons/collections/buffer/TransformedBuffer.java +++ b/src/java/org/apache/commons/collections/buffer/TransformedBuffer.java @@ -30,12 +30,15 @@ import org.apache.commons.collections.collection.TransformedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.5 $ $Date: 2004/06/02 21:57:03 $ + * @version $Revision: 1.6 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class TransformedBuffer extends TransformedCollection implements Buffer { + /** Serialization version */ + private static final long serialVersionUID = -7901091318986132033L; + /** * Factory method to create a transforming buffer. *

diff --git a/src/java/org/apache/commons/collections/collection/PredicatedCollection.java b/src/java/org/apache/commons/collections/collection/PredicatedCollection.java index 3a9dadfc2..ba160f9ef 100644 --- a/src/java/org/apache/commons/collections/collection/PredicatedCollection.java +++ b/src/java/org/apache/commons/collections/collection/PredicatedCollection.java @@ -34,13 +34,16 @@ import org.apache.commons.collections.Predicate; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/02 21:58:06 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Paul Jack */ public class PredicatedCollection extends AbstractSerializableCollectionDecorator { + /** Serialization version */ + private static final long serialVersionUID = -5259182142076705162L; + /** The predicate to use */ protected final Predicate predicate; diff --git a/src/java/org/apache/commons/collections/collection/SynchronizedCollection.java b/src/java/org/apache/commons/collections/collection/SynchronizedCollection.java index 713b2b331..62986d576 100644 --- a/src/java/org/apache/commons/collections/collection/SynchronizedCollection.java +++ b/src/java/org/apache/commons/collections/collection/SynchronizedCollection.java @@ -34,7 +34,7 @@ import java.util.Iterator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/01 23:05:49 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ @@ -42,6 +42,7 @@ public class SynchronizedCollection implements Collection, Serializable { /** Serialization version */ private static final long serialVersionUID = 2412805092710877986L; + /** The collection to decorate */ protected final Collection collection; /** The object to lock on, needed for List/SortedSet views */ diff --git a/src/java/org/apache/commons/collections/collection/TransformedCollection.java b/src/java/org/apache/commons/collections/collection/TransformedCollection.java index fe49ef492..ea4ac5072 100644 --- a/src/java/org/apache/commons/collections/collection/TransformedCollection.java +++ b/src/java/org/apache/commons/collections/collection/TransformedCollection.java @@ -33,12 +33,15 @@ import org.apache.commons.collections.Transformer; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/02 21:58:06 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class TransformedCollection extends AbstractSerializableCollectionDecorator { + /** Serialization version */ + private static final long serialVersionUID = 8692300188161871514L; + /** The transformer to use */ protected final Transformer transformer; diff --git a/src/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollection.java b/src/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollection.java index 7a412f668..79daa0aa6 100644 --- a/src/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollection.java +++ b/src/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollection.java @@ -34,14 +34,17 @@ import org.apache.commons.collections.iterators.UnmodifiableIterator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.9 $ $Date: 2004/06/02 21:58:06 $ + * @version $Revision: 1.10 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public final class UnmodifiableBoundedCollection extends AbstractSerializableCollectionDecorator implements BoundedCollection { - + + /** Serialization version */ + private static final long serialVersionUID = -7112672385450340330L; + /** * Factory method to create an unmodifiable bounded collection. * diff --git a/src/java/org/apache/commons/collections/collection/UnmodifiableCollection.java b/src/java/org/apache/commons/collections/collection/UnmodifiableCollection.java index f55307d8d..833910006 100644 --- a/src/java/org/apache/commons/collections/collection/UnmodifiableCollection.java +++ b/src/java/org/apache/commons/collections/collection/UnmodifiableCollection.java @@ -27,7 +27,7 @@ import org.apache.commons.collections.iterators.UnmodifiableIterator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/02 21:58:06 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ @@ -35,6 +35,9 @@ public final class UnmodifiableCollection extends AbstractSerializableCollectionDecorator implements Unmodifiable { + /** Serialization version */ + private static final long serialVersionUID = -239892006883819945L; + /** * Factory method to create an unmodifiable collection. *

diff --git a/src/java/org/apache/commons/collections/list/FixedSizeList.java b/src/java/org/apache/commons/collections/list/FixedSizeList.java index 9ff8a719f..e37b86852 100644 --- a/src/java/org/apache/commons/collections/list/FixedSizeList.java +++ b/src/java/org/apache/commons/collections/list/FixedSizeList.java @@ -33,7 +33,7 @@ import org.apache.commons.collections.iterators.UnmodifiableIterator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/02 21:59:49 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Paul Jack @@ -42,6 +42,9 @@ public class FixedSizeList extends AbstractSerializableListDecorator implements BoundedCollection { + /** Serialization version */ + private static final long serialVersionUID = -2218010673611160319L; + /** * Factory method to create a fixed size list. * diff --git a/src/java/org/apache/commons/collections/list/LazyList.java b/src/java/org/apache/commons/collections/list/LazyList.java index dd79f1433..f20206542 100644 --- a/src/java/org/apache/commons/collections/list/LazyList.java +++ b/src/java/org/apache/commons/collections/list/LazyList.java @@ -49,14 +49,17 @@ import org.apache.commons.collections.Factory; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.5 $ $Date: 2004/06/02 21:59:49 $ + * @version $Revision: 1.6 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Arron Bates * @author Paul Jack */ public class LazyList extends AbstractSerializableListDecorator { - + + /** Serialization version */ + private static final long serialVersionUID = -1708388017160694542L; + /** The factory to use to lazily instantiate the objects */ protected final Factory factory; diff --git a/src/java/org/apache/commons/collections/list/PredicatedList.java b/src/java/org/apache/commons/collections/list/PredicatedList.java index bb5655038..f49e7d8f9 100644 --- a/src/java/org/apache/commons/collections/list/PredicatedList.java +++ b/src/java/org/apache/commons/collections/list/PredicatedList.java @@ -38,13 +38,16 @@ import org.apache.commons.collections.iterators.AbstractListIteratorDecorator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.5 $ $Date: 2004/06/02 21:59:49 $ + * @version $Revision: 1.6 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Paul Jack */ public class PredicatedList extends PredicatedCollection implements List { + /** Serialization version */ + private static final long serialVersionUID = -5722039223898659102L; + /** * Factory method to create a predicated (validating) list. *

diff --git a/src/java/org/apache/commons/collections/list/SetUniqueList.java b/src/java/org/apache/commons/collections/list/SetUniqueList.java index 14fe4d607..483e25430 100644 --- a/src/java/org/apache/commons/collections/list/SetUniqueList.java +++ b/src/java/org/apache/commons/collections/list/SetUniqueList.java @@ -43,13 +43,16 @@ import org.apache.commons.collections.set.UnmodifiableSet; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/02 21:59:49 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:13 $ * * @author Matthew Hawthorne * @author Stephen Colebourne */ public class SetUniqueList extends AbstractSerializableListDecorator { + /** Serialization version */ + private static final long serialVersionUID = 7196982186153478694L; + /** * Internal Set to maintain uniqueness. */ diff --git a/src/java/org/apache/commons/collections/list/SynchronizedList.java b/src/java/org/apache/commons/collections/list/SynchronizedList.java index 5ce50b3fb..5e61eafd3 100644 --- a/src/java/org/apache/commons/collections/list/SynchronizedList.java +++ b/src/java/org/apache/commons/collections/list/SynchronizedList.java @@ -30,12 +30,15 @@ import org.apache.commons.collections.collection.SynchronizedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/06/01 23:05:49 $ + * @version $Revision: 1.5 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class SynchronizedList extends SynchronizedCollection implements List { + /** Serialization version */ + private static final long serialVersionUID = -1403835447328619437L; + /** * Factory method to create a synchronized list. * diff --git a/src/java/org/apache/commons/collections/list/TransformedList.java b/src/java/org/apache/commons/collections/list/TransformedList.java index 7ce782e73..95c694fc4 100644 --- a/src/java/org/apache/commons/collections/list/TransformedList.java +++ b/src/java/org/apache/commons/collections/list/TransformedList.java @@ -34,12 +34,15 @@ import org.apache.commons.collections.iterators.AbstractListIteratorDecorator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/06/02 21:59:49 $ + * @version $Revision: 1.5 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class TransformedList extends TransformedCollection implements List { + /** Serialization version */ + private static final long serialVersionUID = 1077193035000013141L; + /** * Factory method to create a transforming list. *

diff --git a/src/java/org/apache/commons/collections/list/UnmodifiableList.java b/src/java/org/apache/commons/collections/list/UnmodifiableList.java index c8aeff15a..18d240222 100644 --- a/src/java/org/apache/commons/collections/list/UnmodifiableList.java +++ b/src/java/org/apache/commons/collections/list/UnmodifiableList.java @@ -30,7 +30,7 @@ import org.apache.commons.collections.iterators.UnmodifiableListIterator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/02 21:59:49 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ @@ -38,6 +38,9 @@ public final class UnmodifiableList extends AbstractSerializableListDecorator implements Unmodifiable { + /** Serialization version */ + private static final long serialVersionUID = 6595182819922443652L; + /** * Factory method to create an unmodifiable list. * diff --git a/src/java/org/apache/commons/collections/set/ListOrderedSet.java b/src/java/org/apache/commons/collections/set/ListOrderedSet.java index 2544e4923..a2ec74127 100644 --- a/src/java/org/apache/commons/collections/set/ListOrderedSet.java +++ b/src/java/org/apache/commons/collections/set/ListOrderedSet.java @@ -44,13 +44,16 @@ import org.apache.commons.collections.list.UnmodifiableList; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.7 $ $Date: 2004/06/02 22:02:34 $ + * @version $Revision: 1.8 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Henning P. Schmiedehausen */ public class ListOrderedSet extends AbstractSerializableSetDecorator implements Set { + /** Serialization version */ + private static final long serialVersionUID = -228664372470420141L; + /** Internal list to hold the sequence of objects */ protected final List setOrder; diff --git a/src/java/org/apache/commons/collections/set/PredicatedSet.java b/src/java/org/apache/commons/collections/set/PredicatedSet.java index ae3c2517a..8b14385f6 100644 --- a/src/java/org/apache/commons/collections/set/PredicatedSet.java +++ b/src/java/org/apache/commons/collections/set/PredicatedSet.java @@ -34,13 +34,16 @@ import org.apache.commons.collections.collection.PredicatedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.5 $ $Date: 2004/06/02 22:02:34 $ + * @version $Revision: 1.6 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Paul Jack */ public class PredicatedSet extends PredicatedCollection implements Set { + /** Serialization version */ + private static final long serialVersionUID = -684521469108685117L; + /** * Factory method to create a predicated (validating) set. *

diff --git a/src/java/org/apache/commons/collections/set/PredicatedSortedSet.java b/src/java/org/apache/commons/collections/set/PredicatedSortedSet.java index cdeef0022..35bbaf618 100644 --- a/src/java/org/apache/commons/collections/set/PredicatedSortedSet.java +++ b/src/java/org/apache/commons/collections/set/PredicatedSortedSet.java @@ -34,13 +34,16 @@ import org.apache.commons.collections.Predicate; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.5 $ $Date: 2004/06/02 22:02:34 $ + * @version $Revision: 1.6 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne * @author Paul Jack */ public class PredicatedSortedSet extends PredicatedSet implements SortedSet { + /** Serialization version */ + private static final long serialVersionUID = -9110948148132275052L; + /** * Factory method to create a predicated (validating) sorted set. *

diff --git a/src/java/org/apache/commons/collections/set/SynchronizedSet.java b/src/java/org/apache/commons/collections/set/SynchronizedSet.java index f79c90ea9..c4ee3d1f5 100644 --- a/src/java/org/apache/commons/collections/set/SynchronizedSet.java +++ b/src/java/org/apache/commons/collections/set/SynchronizedSet.java @@ -28,12 +28,15 @@ import org.apache.commons.collections.collection.SynchronizedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/06/01 23:05:49 $ + * @version $Revision: 1.5 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class SynchronizedSet extends SynchronizedCollection implements Set { + /** Serialization version */ + private static final long serialVersionUID = -8304417378626543635L; + /** * Factory method to create a synchronized set. * diff --git a/src/java/org/apache/commons/collections/set/SynchronizedSortedSet.java b/src/java/org/apache/commons/collections/set/SynchronizedSortedSet.java index f2420bb8d..b9e257e1e 100644 --- a/src/java/org/apache/commons/collections/set/SynchronizedSortedSet.java +++ b/src/java/org/apache/commons/collections/set/SynchronizedSortedSet.java @@ -29,12 +29,15 @@ import org.apache.commons.collections.collection.SynchronizedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/06/01 23:05:49 $ + * @version $Revision: 1.5 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class SynchronizedSortedSet extends SynchronizedCollection implements SortedSet { + /** Serialization version */ + private static final long serialVersionUID = 2775582861954500111L; + /** * Factory method to create a synchronized set. * diff --git a/src/java/org/apache/commons/collections/set/TransformedSet.java b/src/java/org/apache/commons/collections/set/TransformedSet.java index 8a6f74f67..bfdb29e6e 100644 --- a/src/java/org/apache/commons/collections/set/TransformedSet.java +++ b/src/java/org/apache/commons/collections/set/TransformedSet.java @@ -31,12 +31,15 @@ import org.apache.commons.collections.collection.TransformedCollection; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/06/02 22:02:34 $ + * @version $Revision: 1.5 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class TransformedSet extends TransformedCollection implements Set { + /** Serialization version */ + private static final long serialVersionUID = 306127383500410386L; + /** * Factory method to create a transforming set. *

diff --git a/src/java/org/apache/commons/collections/set/TransformedSortedSet.java b/src/java/org/apache/commons/collections/set/TransformedSortedSet.java index 86037ff80..fff83c762 100644 --- a/src/java/org/apache/commons/collections/set/TransformedSortedSet.java +++ b/src/java/org/apache/commons/collections/set/TransformedSortedSet.java @@ -31,12 +31,15 @@ import org.apache.commons.collections.Transformer; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/06/02 22:02:34 $ + * @version $Revision: 1.5 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ public class TransformedSortedSet extends TransformedSet implements SortedSet { + /** Serialization version */ + private static final long serialVersionUID = -1675486811351124386L; + /** * Factory method to create a transforming sorted set. *

diff --git a/src/java/org/apache/commons/collections/set/UnmodifiableSet.java b/src/java/org/apache/commons/collections/set/UnmodifiableSet.java index f2a1dea31..d9af3205d 100644 --- a/src/java/org/apache/commons/collections/set/UnmodifiableSet.java +++ b/src/java/org/apache/commons/collections/set/UnmodifiableSet.java @@ -28,7 +28,7 @@ import org.apache.commons.collections.iterators.UnmodifiableIterator; * This class is Serializable from Commons Collections 3.1. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/06/02 22:02:34 $ + * @version $Revision: 1.7 $ $Date: 2004/06/03 22:02:13 $ * * @author Stephen Colebourne */ @@ -36,6 +36,9 @@ public final class UnmodifiableSet extends AbstractSerializableSetDecorator implements Unmodifiable { + /** Serialization version */ + private static final long serialVersionUID = 6499119872185240161L; + /** * Factory method to create an unmodifiable set. *