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

ggregory 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 153f96934 Javadoc @since tag should be after @throws
153f96934 is described below

commit 153f96934f68f784cbf1441eaba21af31a064199
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 22 09:13:33 2025 -0400

    Javadoc @since tag should be after @throws
---
 src/main/java/org/apache/commons/lang3/ArrayUtils.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java 
b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
index ae8d92ab9..3e1374ad6 100644
--- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
@@ -808,8 +808,8 @@ public static <T> T[] add(final T[] array, final int index, 
final T element) {
      * The returned array type will be that of the input array (unless null),
      * in which case it will have the same type as the element.
      * If both are null, an IllegalArgumentException is thrown
-     * @since 2.1
      * @throws IllegalArgumentException if both arguments are null
+     * @since 2.1
      */
     public static <T> T[] add(final T[] array, final T element) {
         final Class<?> type;
@@ -1106,8 +1106,8 @@ public static short[] addAll(final short[] array1, final 
short... array2) {
      * @return The new array, {@code null} if both arrays are {@code null}.
      *      The type of the new array is the type of the first array,
      *      unless the first array is null, in which case the type is the same 
as the second array.
-     * @since 2.1
      * @throws IllegalArgumentException if the array types are incompatible
+     * @since 2.1
      */
     public static <T> T[] addAll(final T[] array1, 
@SuppressWarnings("unchecked") final T... array2) {
         if (array1 == null) {
@@ -1367,8 +1367,8 @@ public static short[] addFirst(final short[] array, final 
short element) {
      * @return A new array containing the existing elements plus the new 
element The returned array type will be that of
      *         the input array (unless null), in which case it will have the 
same type as the element. If both are null,
      *         an IllegalArgumentException is thrown
-     * @since 3.10
      * @throws IllegalArgumentException if both arguments are null
+     * @since 3.10
      */
     public static <T> T[] addFirst(final T[] array, final T element) {
         return array == null ? add(array, element) : insert(0, array, element);

Reply via email to