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 2013/10/23 18:19:15 UTC

svn commit: r1535068 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

Author: ggregory
Date: Wed Oct 23 16:19:15 2013
New Revision: 1535068

URL: http://svn.apache.org/r1535068
Log:
Javadoc: Add @see tags for subarray methods to point to Java 6 Arrays.copyOfRange(...) methods. The behavior is not exactly the same so no deprecation.

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java?rev=1535068&r1=1535067&r2=1535068&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/ArrayUtils.java Wed Oct 23 16:19:15 2013
@@ -864,6 +864,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(T[], int, int)
      */
     public static <T> T[] subarray(final T[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -907,6 +908,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(long[], int, int)
      */
     public static long[] subarray(final long[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -946,6 +948,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(int[], int, int)
      */
     public static int[] subarray(final int[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -985,6 +988,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(short[], int, int)
      */
     public static short[] subarray(final short[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -1024,6 +1028,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(char[], int, int)
      */
     public static char[] subarray(final char[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -1063,6 +1068,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(byte[], int, int)
      */
     public static byte[] subarray(final byte[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -1102,6 +1108,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(double[], int, int)
      */
     public static double[] subarray(final double[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -1141,6 +1148,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(float[], int, int)
      */
     public static float[] subarray(final float[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {
@@ -1180,6 +1188,7 @@ public class ArrayUtils {
      * @return a new array containing the elements between
      *      the start and end indices.
      * @since 2.1
+     * @see Arrays#copyOfRange(boolean[], int, int)
      */
     public static boolean[] subarray(final boolean[] array, int startIndexInclusive, int endIndexExclusive) {
         if (array == null) {