aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/AbstractSequentialList.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2004-08-29 17:28:09 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2004-08-29 19:28:09 +0200
commit477a21f7f9b31c687d45f1001dd93c90df52cf29 (patch)
tree20a303114d352cf8ac2c2a4bf36764aa0a06579a /libjava/java/util/AbstractSequentialList.java
parent294fbfc89faac46092334188d2bbe527880794a7 (diff)
downloadgcc-477a21f7f9b31c687d45f1001dd93c90df52cf29.zip
gcc-477a21f7f9b31c687d45f1001dd93c90df52cf29.tar.gz
gcc-477a21f7f9b31c687d45f1001dd93c90df52cf29.tar.bz2
AbstractCollection.java, [...]: Added additional exceptions to documentation...
2004-08-29 Andrew John Hughes <gnu_andrew@member.fsf.org> * java/util/AbstractCollection.java, java/util/AbstractList.java, java/util/AbstractMap.java, java/util/AbstractSequentialList.java, java/util/ArrayList.java, java/util/Arrays.java, java/util/BitSet.java, java/util/Calendar.java, java/util/Collection.java, java/util/ListIterator.java, java/util/Map.java, java/util/SortedSet.java: Added additional exceptions to documentation, along with some additions and corrections. From-SVN: r86730
Diffstat (limited to 'libjava/java/util/AbstractSequentialList.java')
-rw-r--r--libjava/java/util/AbstractSequentialList.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/libjava/java/util/AbstractSequentialList.java b/libjava/java/util/AbstractSequentialList.java
index e74c75c..0e5d59f 100644
--- a/libjava/java/util/AbstractSequentialList.java
+++ b/libjava/java/util/AbstractSequentialList.java
@@ -105,7 +105,9 @@ public abstract class AbstractSequentialList extends AbstractList
* @throws ClassCastException if o cannot be added to this list due to its
* type
* @throws IllegalArgumentException if o cannot be added to this list for
- * some other reason
+ * some other reason.
+ * @throws NullPointerException if o is null and the list does not permit
+ * the addition of null values.
*/
public void add(int index, Object o)
{
@@ -137,6 +139,8 @@ public abstract class AbstractSequentialList extends AbstractList
* @throws IllegalArgumentException if some element of c cannot be added
* to this list for some other reason
* @throws NullPointerException if the specified collection is null
+ * @throws NullPointerException if an object, o, in c is null and the list
+ * does not permit the addition of null values.
* @see #add(int, Object)
*/
public boolean addAll(int index, Collection c)
@@ -214,6 +218,8 @@ public abstract class AbstractSequentialList extends AbstractList
* type
* @throws IllegalArgumentException if o cannot be added to this list for
* some other reason
+ * @throws NullPointerException if o is null and the list does not allow
+ * a value to be set to null.
*/
public Object set(int index, Object o)
{