From 9bd92c2f243aa9ec93567e68a6e119218915da27 Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Fri, 2 Apr 2004 21:17:48 +0000 Subject: [PATCH] Enable subclasses to be serializable git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131624 13f79535-47bb-0310-9956-ffa450edef68 --- .../collections/map/AbstractOrderedMapDecorator.java | 10 +++++++++- .../collections/map/AbstractSortedMapDecorator.java | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/collections/map/AbstractOrderedMapDecorator.java b/src/java/org/apache/commons/collections/map/AbstractOrderedMapDecorator.java index e638addac..e4211ae62 100644 --- a/src/java/org/apache/commons/collections/map/AbstractOrderedMapDecorator.java +++ b/src/java/org/apache/commons/collections/map/AbstractOrderedMapDecorator.java @@ -32,13 +32,21 @@ import org.apache.commons.collections.OrderedMapIterator; * But, you might want that loophole, so this class is kept simple. * * @since Commons Collections 3.0 - * @version $Revision: 1.6 $ $Date: 2004/02/18 01:13:19 $ + * @version $Revision: 1.7 $ $Date: 2004/04/02 21:17:48 $ * * @author Stephen Colebourne */ public abstract class AbstractOrderedMapDecorator extends AbstractMapDecorator implements OrderedMap { + /** + * Constructor only used in deserialization, do not use otherwise. + * @since Commons Collections 3.1 + */ + protected AbstractOrderedMapDecorator() { + super(); + } + /** * Constructor that wraps (not copies). * diff --git a/src/java/org/apache/commons/collections/map/AbstractSortedMapDecorator.java b/src/java/org/apache/commons/collections/map/AbstractSortedMapDecorator.java index 357b297c2..f281b1444 100644 --- a/src/java/org/apache/commons/collections/map/AbstractSortedMapDecorator.java +++ b/src/java/org/apache/commons/collections/map/AbstractSortedMapDecorator.java @@ -31,13 +31,21 @@ import java.util.SortedMap; * But, you might want that loophole, so this class is kept simple. * * @since Commons Collections 3.0 - * @version $Revision: 1.4 $ $Date: 2004/02/18 01:13:19 $ + * @version $Revision: 1.5 $ $Date: 2004/04/02 21:16:50 $ * * @author Stephen Colebourne */ public abstract class AbstractSortedMapDecorator extends AbstractMapDecorator implements SortedMap { + /** + * Constructor only used in deserialization, do not use otherwise. + * @since Commons Collections 3.1 + */ + protected AbstractSortedMapDecorator() { + super(); + } + /** * Constructor that wraps (not copies). *