3c859caf2b
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
14 lines
481 B
Java
Vendored
14 lines
481 B
Java
Vendored
//file
|
|
package demo;
|
|
|
|
class Test {
|
|
static void subListRangeCheck(int fromIndex, int toIndex, int size) {
|
|
if (fromIndex < 0)
|
|
throw new IndexOutOfBoundsException("fromIndex = " + fromIndex);
|
|
if (toIndex > size)
|
|
throw new IndexOutOfBoundsException("toIndex = " + toIndex);
|
|
if (fromIndex > toIndex)
|
|
throw new IllegalArgumentException("fromIndex(" + fromIndex
|
|
+ ") > toIndex(" + toIndex + ")");
|
|
}
|
|
} |