Use fully-qualified references to exceptions in kotlin-runtime
This commit is contained in:
@@ -31,7 +31,7 @@ public open class CharProgression
|
|||||||
step: Int
|
step: Int
|
||||||
) : Iterable<Char> {
|
) : Iterable<Char> {
|
||||||
init {
|
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
|
step: Int
|
||||||
) : Iterable<Int> {
|
) : Iterable<Int> {
|
||||||
init {
|
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
|
step: Long
|
||||||
) : Iterable<Long> {
|
) : Iterable<Long> {
|
||||||
init {
|
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)
|
return end + differenceModulo(start, end, -step)
|
||||||
}
|
}
|
||||||
else {
|
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)
|
return end + differenceModulo(start, end, -step)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw IllegalArgumentException("Step is zero.")
|
throw kotlin.IllegalArgumentException("Step is zero.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ package kotlin.jvm.internal
|
|||||||
import kotlin.reflect.KDeclarationContainer
|
import kotlin.reflect.KDeclarationContainer
|
||||||
|
|
||||||
private fun notSupportedError(): Nothing {
|
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() {
|
open class LocalVariableReference : PropertyReference0() {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class GenerateProgressions(out: PrintWriter) : BuiltInsSourceGenerator(out) {
|
|||||||
LONG -> "0L"
|
LONG -> "0L"
|
||||||
else -> "0"
|
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) {
|
val hashCode = "=\n" + when (kind) {
|
||||||
CHAR ->
|
CHAR ->
|
||||||
|
|||||||
Reference in New Issue
Block a user