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 b6d284b49 Javadoc
b6d284b49 is described below

commit b6d284b49de8460381a1752d25f4d4f387db28e2
Author: Gary Gregory <[email protected]>
AuthorDate: Mon May 18 07:20:37 2026 -0400

    Javadoc
---
 src/main/java/org/apache/commons/lang3/ArrayFill.java | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/ArrayFill.java 
b/src/main/java/org/apache/commons/lang3/ArrayFill.java
index d0dc14418..32c83a290 100644
--- a/src/main/java/org/apache/commons/lang3/ArrayFill.java
+++ b/src/main/java/org/apache/commons/lang3/ArrayFill.java
@@ -151,17 +151,19 @@ public static short[] fill(final short[] a, final short 
val) {
     }
 
     /**
-     * Fills and returns the given array, using the provided generator 
supplier to compute each element. Like
-     * {@link Arrays#setAll(Object[], IntFunction)} with exception support.
+     * Fills and returns the given array, using the provided generator 
function to compute each element. Like {@link Arrays#setAll(Object[], 
IntFunction)} with
+     * exception support.
      * <p>
-     * If the generator supplier throws an exception, it is relayed to the 
caller and the array is left in an indeterminate
-     * state.
+     * If the generator function throws an exception, it is relayed to the 
caller and the array is left in an indeterminate state.
+     * </p>
+     * <p>
+     * If the input array or generator function is null, nothing happens.
      * </p>
      *
-     * @param <T> type of elements of the array.
-     * @param array array to be initialized.
+     * @param <T>       type of elements of the array.
+     * @param array     array to be filled (may be null).
      * @param generator a function accepting an index and producing the 
desired value for that position.
-     * @return the input array
+     * @return the input array.
      * @param <E> The kind of thrown exception or error.
      * @throws E Thrown by the given {@code generator}.
      * @see Arrays#setAll(Object[], IntFunction)

Reply via email to