Use fully-qualified references to exceptions in kotlin-runtime
This commit is contained in:
@@ -31,7 +31,7 @@ public open class CharProgression
|
||||
step: Int
|
||||
) : Iterable<Char> {
|
||||
init {
|
||||
if (step == 0) throw IllegalArgumentException("Step must be non-zero")
|
||||
if (step == 0) throw kotlin.IllegalArgumentException("Step must be non-zero")
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,7 +85,7 @@ public open class IntProgression
|
||||
step: Int
|
||||
) : Iterable<Int> {
|
||||
init {
|
||||
if (step == 0) throw IllegalArgumentException("Step must be non-zero")
|
||||
if (step == 0) throw kotlin.IllegalArgumentException("Step must be non-zero")
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,7 +139,7 @@ public open class LongProgression
|
||||
step: Long
|
||||
) : Iterable<Long> {
|
||||
init {
|
||||
if (step == 0L) throw IllegalArgumentException("Step must be non-zero")
|
||||
if (step == 0L) throw kotlin.IllegalArgumentException("Step must be non-zero")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -57,7 +57,7 @@ internal fun getProgressionLastElement(start: Int, end: Int, step: Int): Int {
|
||||
return end + differenceModulo(start, end, -step)
|
||||
}
|
||||
else {
|
||||
throw IllegalArgumentException("Step is zero.")
|
||||
throw kotlin.IllegalArgumentException("Step is zero.")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,6 +82,6 @@ internal fun getProgressionLastElement(start: Long, end: Long, step: Long): Long
|
||||
return end + differenceModulo(start, end, -step)
|
||||
}
|
||||
else {
|
||||
throw IllegalArgumentException("Step is zero.")
|
||||
throw kotlin.IllegalArgumentException("Step is zero.")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ package kotlin.jvm.internal
|
||||
import kotlin.reflect.KDeclarationContainer
|
||||
|
||||
private fun notSupportedError(): Nothing {
|
||||
throw UnsupportedOperationException("Not supported for local property reference.")
|
||||
throw kotlin.UnsupportedOperationException("Not supported for local property reference.")
|
||||
}
|
||||
|
||||
open class LocalVariableReference : PropertyReference0() {
|
||||
|
||||
@@ -35,7 +35,7 @@ class GenerateProgressions(out: PrintWriter) : BuiltInsSourceGenerator(out) {
|
||||
LONG -> "0L"
|
||||
else -> "0"
|
||||
}
|
||||
val checkZero = "if (step == $zero) throw IllegalArgumentException(\"Step must be non-zero\")"
|
||||
val checkZero = "if (step == $zero) throw kotlin.IllegalArgumentException(\"Step must be non-zero\")"
|
||||
|
||||
val hashCode = "=\n" + when (kind) {
|
||||
CHAR ->
|
||||
|
||||
Reference in New Issue
Block a user