From f7ae1720cc5e7da9feb9ceef56e80cc2b29e46c0 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 20 Oct 2024 17:41:23 -0400 Subject: [PATCH] Fix Javadoc warning [WARNING] ...\commons-collections\src\main\java\org\apache\commons\collections4\list\TreeList.java:955: warning: overridden methods do not document exception type java.lang.NullPointerException (package java.lang class NullPointerException) [WARNING] * @throws NullPointerException {@inheritDoc} [WARNING] ^ --- .../java/org/apache/commons/collections4/list/TreeList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {