This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 085cab03d [javadoc] Clarify null array handling in 
ArrayUtils.removeAll (#1895)
085cab03d is described below

commit 085cab03d4f055b6bbce47cd4ca0a2b8ef8e20c0
Author: lifuxiaojiedegou <[email protected]>
AuthorDate: Sat Nov 28 21:43:57 2026 +0800

    [javadoc] Clarify null array handling in ArrayUtils.removeAll (#1895)
    
    Align the array parameter descriptions across all nine public overloads 
with the existing return documentation and behavior.
    
    Assisted-By: OpenAI Codex
---
 src/main/java/org/apache/commons/lang3/ArrayUtils.java | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java 
b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
index c49f93074..d9912d499 100644
--- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
@@ -5381,7 +5381,7 @@ public static <T> T[] remove(final T[] array, final int 
index) {
      * ArrayUtils.removeAll([true, false, true], 1, 2) = [true]
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5410,7 +5410,7 @@ public static boolean[] removeAll(final boolean[] array, 
final int... indices) {
      * ArrayUtils.removeAll([2, 6, 3], 0, 1, 2) = []
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5439,7 +5439,7 @@ public static byte[] removeAll(final byte[] array, final 
int... indices) {
      * ArrayUtils.removeAll([2, 6, 3], 0, 1, 2) = []
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5468,7 +5468,7 @@ public static char[] removeAll(final char[] array, final 
int... indices) {
      * ArrayUtils.removeAll([2, 6, 3], 0, 1, 2) = []
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5497,7 +5497,7 @@ public static double[] removeAll(final double[] array, 
final int... indices) {
      * ArrayUtils.removeAll([2, 6, 3], 0, 1, 2) = []
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5526,7 +5526,7 @@ public static float[] removeAll(final float[] array, 
final int... indices) {
      * ArrayUtils.removeAll([2, 6, 3], 0, 1, 2) = []
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5555,7 +5555,7 @@ public static int[] removeAll(final int[] array, final 
int... indices) {
      * ArrayUtils.removeAll([2, 6, 3], 0, 1, 2) = []
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5637,7 +5637,7 @@ static Object removeAll(final Object array, final int... 
indices) {
      * ArrayUtils.removeAll([2, 6, 3], 0, 1, 2) = []
      * </pre>
      *
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).
@@ -5663,7 +5663,7 @@ public static short[] removeAll(final short[] array, 
final int... indices) {
      * </pre>
      *
      * @param <T>     the component type of the array.
-     * @param array   The array to remove the element from, may not be {@code 
null}.
+     * @param array   The array to remove elements from, may be {@code null}.
      * @param indices The positions of the elements to be removed.
      * @return A new array containing the existing elements except those at 
the specified positions or {@code null} if the input array is {@code null}.
      * @throws IndexOutOfBoundsException Thrown if any index is out of range 
(index &lt; 0 || index &gt;= array.length).

Reply via email to