From b9e83dce4f3fdff1ee8748526c773cca8bad1bfb Mon Sep 17 00:00:00 2001 From: andreast Date: Sun, 29 Aug 2004 17:28:09 +0000 Subject: 2004-08-29 Andrew John Hughes * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86730 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/util/AbstractSequentialList.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libjava/java/util/AbstractSequentialList.java') diff --git a/libjava/java/util/AbstractSequentialList.java b/libjava/java/util/AbstractSequentialList.java index e74c75c4fdb..0e5d59fceec 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) { -- cgit v1.2.3