MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / checkBounds

Method checkBounds

vm/JavaAPI/src/java/util/Arrays.java:1902–1915  ·  view source on GitHub ↗
(int arrLength, int start, int end)

Source from the content-addressed store, hash-verified

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;

Callers 2

fillMethod · 0.95
sortMethod · 0.95

Calls 1

valueOfMethod · 0.95

Tested by

no test coverage detected