summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/AbstractSequentialList.java
diff options
context:
space:
mode:
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 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)
{
OpenPOWER on IntegriCloud