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

Method checkBounds

Ports/CLDC11/src/java/util/Arrays.java:2045–2058  ·  view source on GitHub ↗
(int arrLength, int start, int end)

Source from the content-addressed store, hash-verified

2043 }
2044
2045 private static void checkBounds(int arrLength, int start, int end) {
2046 if (start > end) {
2047 // luni.35=Start index ({0}) is greater than end index ({1})
2048 throw new IndexOutOfBoundsException("" + start + " out of: " + end);
2049 }
2050 if (start < 0) {
2051 // luni.36=Array index out of range\: {0}
2052 throw new IndexOutOfBoundsException("" + start);
2053 }
2054 if (end > arrLength) {
2055 // luni.36=Array index out of range\: {0}
2056 throw new IndexOutOfBoundsException("" + end);
2057 }
2058 }
2059
2060 private static void sort(int start, int end, byte[] array) {
2061 byte temp;

Callers 2

fillMethod · 0.95
sortMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected