Skip to content

Commit 871b2b4

Browse files
Improve Javadoc for ArrayUtils.toStringArray methods
1 parent 3c70bff commit 871b2b4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/main/java/org/apache/commons/lang3/ArrayUtils.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9524,15 +9524,17 @@ public static String toString(final Object array, final String stringIfNull) {
95249524
}
95259525
return new ToStringBuilder(array, ToStringStyle.SIMPLE_STYLE).append(array).toString();
95269526
}
9527+
95279528
/**
9528-
* <p>Converts an array of objects to an array of strings, handling {@code null} values gracefully.</p>
9529-
*
9530-
* <p>{@code null} elements in the input array are converted to the string {@code "null"}.</p>
9531-
*
9532-
* @param array the array to convert, may be {@code null}
9533-
* @return a string array, or {@code null} if the input array is {@code null}
9534-
* @since 3.6
9535-
*/
9529+
* <p>Converts an array of objects to an array of strings, handling {@code null} values gracefully.</p>
9530+
* <p>If the input array is {@code null}, this method returns {@code null}.</p>
9531+
* <p>{@code null} elements in the input array are converted to the string {@code "null"}.</p>
9532+
*
9533+
* @param array the array to convert, may be {@code null}
9534+
* @return a string array, or {@code null} if the input array is {@code null}
9535+
* @since 3.6
9536+
*/
9537+
95369538
public static String[] toStringArray(final Object[] array) {
95379539
return toStringArray(array, "null");
95389540
}

0 commit comments

Comments
 (0)