Method
checkRange
(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++) { |
Tested by
no test coverage detected