741e031ff1
Use formatter in converter tests Reformat test data
14 lines
502 B
Kotlin
14 lines
502 B
Kotlin
package demo
|
|
|
|
open class Test() {
|
|
class object {
|
|
open fun subListRangeCheck(fromIndex: Int, toIndex: Int, size: Int) {
|
|
if (fromIndex < 0)
|
|
throw IndexOutOfBoundsException("fromIndex = " + fromIndex)
|
|
if (toIndex > size)
|
|
throw IndexOutOfBoundsException("toIndex = " + toIndex)
|
|
if (fromIndex > toIndex)
|
|
throw IllegalArgumentException("fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")")
|
|
}
|
|
}
|
|
} |