| 1900 | } |
| 1901 | |
| 1902 | private static void checkBounds(int arrLength, int start, int end) { |
| 1903 | if (start > end) { |
| 1904 | // luni.35=Start index ({0}) is greater than end index ({1}) |
| 1905 | throw new IllegalArgumentException("Start index greater than end index"); |
| 1906 | } |
| 1907 | if (start < 0) { |
| 1908 | // luni.36=Array index out of range\: {0} |
| 1909 | throw new IndexOutOfBoundsException(String.valueOf(start)); |
| 1910 | } |
| 1911 | if (end > arrLength) { |
| 1912 | // luni.36=Array index out of range\: {0} |
| 1913 | throw new IndexOutOfBoundsException(String.valueOf(end)); |
| 1914 | } |
| 1915 | } |
| 1916 | |
| 1917 | private static void sort(int start, int end, byte[] array) { |
| 1918 | byte temp; |