| 1665 | } |
| 1666 | |
| 1667 | private static void checkBounds(int arrLength, int start, int end) { |
| 1668 | if (start > end) { |
| 1669 | // luni.35=Start index ({0}) is greater than end index ({1}) |
| 1670 | throw new IllegalArgumentException(Messages.getString("luni.35", //$NON-NLS-1$ |
| 1671 | Integer.valueOf(start), Integer.valueOf(end))); |
| 1672 | } |
| 1673 | if (start < 0) { |
| 1674 | // luni.36=Array index out of range\: {0} |
| 1675 | throw new ArrayIndexOutOfBoundsException(Messages.getString("luni.36", start)); //$NON-NLS-1$ |
| 1676 | } |
| 1677 | if (end > arrLength) { |
| 1678 | // luni.36=Array index out of range\: {0} |
| 1679 | throw new ArrayIndexOutOfBoundsException(Messages.getString("luni.36", end)); //$NON-NLS-1$ |
| 1680 | } |
| 1681 | } |
| 1682 | |
| 1683 | private static void sort(int start, int end, byte[] array) { |
| 1684 | byte temp; |