changeset 8272:c44a7124cf25

Remove unused method from Arrays
author briangoetz
date Sat, 20 Apr 2013 17:39:42 -0400
parents 9bcec44fa73d
children b6cd28ccfda1
files src/share/classes/java/util/Arrays.java
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Arrays.java	Sat Apr 20 14:30:17 2013 -0700
+++ b/src/share/classes/java/util/Arrays.java	Sat Apr 20 17:39:42 2013 -0400
@@ -4514,18 +4514,6 @@
 
 
     /**
-     * Checks that the half-open interval from {@code offset} to
-     * {@code offset+length} are within the range of valid array indexes, and
-     * throws an exception if they aren't.
-     * @since 1.8
-     */
-    public static void checkOffsetLenBounds(int arrayLength, int offset, int length) throws IndexOutOfBoundsException {
-        if (offset < 0 || length < 0 || (offset + length) > arrayLength) {
-            throw new IndexOutOfBoundsException();
-        }
-    }
-
-    /**
      * Set all elements of the specified array, using the provided
      * generator function to compute each element.
      *