MCPcopy Index your code
hub / github.com/davidgiven/luje / checkBounds

Method checkBounds

lib/java/util/Arrays.java:1667–1681  ·  view source on GitHub ↗
(int arrLength, int start, int end)

Source from the content-addressed store, hash-verified

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;

Callers 2

fillMethod · 0.95
sortMethod · 0.95

Calls 2

getStringMethod · 0.95
valueOfMethod · 0.95

Tested by

no test coverage detected