diff --git a/src/main/java/org/apache/commons/collections4/list/TreeList.java b/src/main/java/org/apache/commons/collections4/list/TreeList.java index 07d194ade2..d91297b266 100644 --- a/src/main/java/org/apache/commons/collections4/list/TreeList.java +++ b/src/main/java/org/apache/commons/collections4/list/TreeList.java @@ -952,7 +952,9 @@ public void add(final int index, final E obj) { * * @param c the collection to be added to this list * @return {@code true} if this list changed as a result of the call - * @throws NullPointerException {@inheritDoc} + * @throws NullPointerException if the specified collection contains a + * null element and this collection does not permit null elements, + * or if the specified collection is null */ @Override public boolean addAll(final Collection c) {