[COLLECTIONS-327] added serialVersionUID.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1023281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brent Worden 2010-10-16 13:24:12 +00:00
parent 24264d13ed
commit 9976cbe48d
4 changed files with 13 additions and 0 deletions

View File

@ -45,6 +45,9 @@ import org.apache.commons.collections.list.UnmodifiableList;
*/ */
public class CompositeCollection<E> implements Collection<E>, Serializable { public class CompositeCollection<E> implements Collection<E>, Serializable {
/** Serialization version */
private static final long serialVersionUID = 1L;
/** CollectionMutator to handle changes to the collection */ /** CollectionMutator to handle changes to the collection */
protected CollectionMutator<E> mutator; protected CollectionMutator<E> mutator;

View File

@ -37,6 +37,9 @@ import org.apache.commons.collections.collection.CompositeCollection;
*/ */
public class CompositeSet<E> extends CompositeCollection<E> implements Set<E> { public class CompositeSet<E> extends CompositeCollection<E> implements Set<E> {
/** Serialization version */
private static final long serialVersionUID = 1L;
/** /**
* Create an empty CompositeSet * Create an empty CompositeSet
*/ */

View File

@ -25,6 +25,9 @@ import java.util.Collection;
* class also has to be serialized. * class also has to be serialized.
*/ */
class EmptyMapMutator implements CompositeMap.MapMutator { class EmptyMapMutator implements CompositeMap.MapMutator {
/** Serialization version */
private static final long serialVersionUID = 1L;
public void resolveCollision(CompositeMap composite, public void resolveCollision(CompositeMap composite,
Map existing, Map existing,
Map added, Map added,

View File

@ -28,6 +28,10 @@ import org.apache.commons.collections.collection.CompositeCollection;
* class also has to be serialized. * class also has to be serialized.
*/ */
class EmptySetMutator<E> implements CompositeSet.SetMutator<E> { class EmptySetMutator<E> implements CompositeSet.SetMutator<E> {
/** Serialization version */
private static final long serialVersionUID = 1L;
private Set<E> contained; private Set<E> contained;
public EmptySetMutator(Set<E> set) { public EmptySetMutator(Set<E> set) {