From 5cec4b2b960ca5156a0becb948740afcdcb47c68 Mon Sep 17 00:00:00 2001 From: Rodney Waldhoff Date: Mon, 6 Jan 2003 04:05:39 +0000 Subject: [PATCH] better deprecation messages git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130905 13f79535-47bb-0310-9956-ffa450edef68 --- .../primitives/AbstractIntArrayList.java | 20 +++++++------------ .../collections/primitives/IntArrayList.java | 15 +++++++------- .../primitives/UnsignedShortArrayList.java | 14 ++++--------- 3 files changed, 18 insertions(+), 31 deletions(-) diff --git a/src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java b/src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java index f5bb6d054..c6f6e31c1 100644 --- a/src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/AbstractIntArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractIntArrayList.java,v 1.7 2003/01/04 15:00:57 rwaldhoff Exp $ - * $Revision: 1.7 $ - * $Date: 2003/01/04 15:00:57 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/AbstractIntArrayList.java,v 1.8 2003/01/06 04:05:39 rwaldhoff Exp $ + * $Revision: 1.8 $ + * $Date: 2003/01/06 04:05:39 $ * * ==================================================================== * @@ -67,18 +67,12 @@ package org.apache.commons.collections.primitives; * Abstract base class for lists of primitive int elements * backed by an array.

* - * Extending this class is essentially the same as extending its superclass - * ({@link AbstractIntList}. However, this class assumes that the - * primitive values will be stored in an underlying primitive array, and - * provides methods for manipulating the capacity of that array.

- * - * @version $Revision: 1.7 $ $Date: 2003/01/04 15:00:57 $ + * @version $Revision: 1.8 $ $Date: 2003/01/06 04:05:39 $ * @author Rodney Waldhoff * - * @deprecated This class will soon change to implement - * {@link IntList} and not {@link List}. Adapters - * between {@link List} and {@link IntList} will be - * provided. + * @deprecated An {@link IntList} implementation, such as {@link ArrayIntList} + * should be used instead. Use {@link IntListList} for {@link List} + * compatibility. */ public abstract class AbstractIntArrayList extends AbstractIntList { diff --git a/src/java/org/apache/commons/collections/primitives/IntArrayList.java b/src/java/org/apache/commons/collections/primitives/IntArrayList.java index de7011f65..2a7643ce6 100644 --- a/src/java/org/apache/commons/collections/primitives/IntArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/IntArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/IntArrayList.java,v 1.8 2003/01/04 15:00:57 rwaldhoff Exp $ - * $Revision: 1.8 $ - * $Date: 2003/01/04 15:00:57 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/IntArrayList.java,v 1.9 2003/01/06 04:05:39 rwaldhoff Exp $ + * $Revision: 1.9 $ + * $Date: 2003/01/06 04:05:39 $ * * ==================================================================== * @@ -73,12 +73,11 @@ import java.io.Serializable; * {@link java.util.ArrayList} of {@link Integer} values and allows for * better compile-time type checking.

* - * @version $Revision: 1.8 $ $Date: 2003/01/04 15:00:57 $ + * @version $Revision: 1.9 $ $Date: 2003/01/06 04:05:39 $ * @author Rodney Waldhoff - * @deprecated This class will soon change to implement - * {@link IntList} and not {@link List}. Adapters - * between {@link List} and {@link IntList} will be - * provided. + * + * @deprecated {@link ArrayIntList} should be used instead. + * Use {@link IntListList} for {@link List} compatibility. */ public class IntArrayList extends AbstractIntArrayList implements Serializable { diff --git a/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java b/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java index e39a8c0f7..d69ff4118 100644 --- a/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java +++ b/src/java/org/apache/commons/collections/primitives/UnsignedShortArrayList.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedShortArrayList.java,v 1.8 2003/01/04 15:00:57 rwaldhoff Exp $ - * $Revision: 1.8 $ - * $Date: 2003/01/04 15:00:57 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/primitives/Attic/UnsignedShortArrayList.java,v 1.9 2003/01/06 04:05:39 rwaldhoff Exp $ + * $Revision: 1.9 $ + * $Date: 2003/01/06 04:05:39 $ * * ==================================================================== * @@ -75,14 +75,8 @@ import java.io.Serializable; * than a {@link java.util.ArrayList} and offers better compile-time type * checking. * - * @version $Revision: 1.8 $ $Date: 2003/01/04 15:00:57 $ + * @version $Revision: 1.9 $ $Date: 2003/01/06 04:05:39 $ * @author Rodney Waldhoff - * - * @deprecated This class will soon change to implement - * {@link IntList} and not {@link List}. Adapters - * between {@link List} and {@link IntList} will be - * provided. - * */ public class UnsignedShortArrayList extends AbstractIntArrayList implements Serializable {