You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/08/14 03:09:05 UTC

[commons-lang] 01/03: Sort members.

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

commit 9060099e4019a99cce658c4a487ac5d8e9ea22f7
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 13 17:46:09 2021 -0400

    Sort members.
---
 .../java/org/apache/commons/lang3/ArrayUtils.java  | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
index e5e4c27..c325b58 100644
--- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java
@@ -755,18 +755,6 @@ public class ArrayUtils {
     }
 
     /**
-     * Gets an array's component type.
-     *
-     * @param <T> The array type.
-     * @param array The array.
-     * @return The component type.
-     * @since 3.13.0
-     */
-    public static <T> Class<T> getComponentType(final T[] array) {
-        return ClassUtils.getComponentType(ObjectUtils.getClass(array));
-    }
-
-    /**
      * <p>Copies the given array and adds the given element at the end of the new array.
      *
      * <p>The new array contains the same elements of the input
@@ -1700,6 +1688,18 @@ public class ArrayUtils {
     }
 
     /**
+     * Gets an array's component type.
+     *
+     * @param <T> The array type.
+     * @param array The array.
+     * @return The component type.
+     * @since 3.13.0
+     */
+    public static <T> Class<T> getComponentType(final T[] array) {
+        return ClassUtils.getComponentType(ObjectUtils.getClass(array));
+    }
+
+    /**
      * <p>Returns the length of the specified array.
      * This method can deal with {@code Object} arrays and with primitive arrays.
      *