diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index f55b4634d5a..6c8fbca3c91 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -1558,10 +1558,6 @@ public static T[] clone(final T[] array) { *

* The method returns {@code false} if a {@code null} array is passed in. *

- *

- * If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. - *

* * @param array the array to search through * @param valueToFind the value to find @@ -1578,7 +1574,7 @@ public static boolean contains(final boolean[] array, final boolean valueToFind) *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(byte[])} and {@link Arrays#binarySearch(byte[], byte)}. *

* * @param array the array to search through @@ -1596,7 +1592,7 @@ public static boolean contains(final byte[] array, final byte valueToFind) { *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(char[])} and {@link Arrays#binarySearch(char[], char)}. *

* * @param array the array to search through @@ -1615,7 +1611,7 @@ public static boolean contains(final char[] array, final char valueToFind) { *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(double[])} and {@link Arrays#binarySearch(double[], double)}. *

* * @param array the array to search through @@ -1636,7 +1632,7 @@ public static boolean contains(final double[] array, final double valueToFind) { *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(double[])} and {@link Arrays#binarySearch(double[], double)}. *

* * @param array the array to search @@ -1655,7 +1651,7 @@ public static boolean contains(final double[] array, final double valueToFind, f *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(float[])} and {@link Arrays#binarySearch(float[], float)}. *

* * @param array the array to search through @@ -1673,7 +1669,7 @@ public static boolean contains(final float[] array, final float valueToFind) { *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(int[])} and {@link Arrays#binarySearch(int[], int)}. *

* * @param array the array to search through @@ -1691,7 +1687,7 @@ public static boolean contains(final int[] array, final int valueToFind) { *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(long[])} and {@link Arrays#binarySearch(long[], long)}. *

* * @param array the array to search through @@ -1727,7 +1723,7 @@ public static boolean contains(final Object[] array, final Object objectToFind) *

*

* If the {@code array} elements you are searching implement {@link Comparator}, consider whether it is worth using - * {@link Arrays#sort(Object[], Comparator)} and {@link Arrays#binarySearch(Object[], Object)}. + * {@link Arrays#sort(short[])} and {@link Arrays#binarySearch(short[], short)}. *

* * @param array the array to search through