MCPcopy Create free account
hub / github.com/ReadyTalk/avian / checkRange

Method checkRange

classpath/java/util/Arrays.java:488–498  ·  view source on GitHub ↗
(int len, int start, int stop)

Source from the content-addressed store, hash-verified

486 }
487
488 private static void checkRange(int len, int start, int stop) {
489 if (start < 0) {
490 throw new ArrayIndexOutOfBoundsException(start);
491 }
492 if (stop > len) {
493 throw new ArrayIndexOutOfBoundsException(stop);
494 }
495 if (start > stop) {
496 throw new IllegalArgumentException("start(" + start + ") > stop(" + stop + ")");
497 }
498 }
499
500 public static void fill(int[] array, int value) {
501 for (int i=0;i<array.length;i++) {

Callers 1

fillMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected