Use fully-qualified references to exceptions in kotlin-runtime

This commit is contained in:
Ilya Gorbunov
2016-09-23 18:13:20 +03:00
parent 7e2e2b9f19
commit 3baf2f8942
4 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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 ->