[stdlib] Explicit visibility and return types: JVM

This commit is contained in:
Ilya Gorbunov
2023-09-19 13:47:21 +02:00
committed by Space Team
parent c77930c1ea
commit 2e030f213b
17 changed files with 31 additions and 31 deletions
@@ -6,7 +6,7 @@
package kotlin
public open class KotlinNullPointerException : NullPointerException {
constructor()
public constructor()
constructor(message: String?) : super(message)
public constructor(message: String?) : super(message)
}
@@ -6,11 +6,11 @@
package kotlin
public actual open class NoWhenBranchMatchedException : RuntimeException {
actual constructor()
public actual constructor()
actual constructor(message: String?) : super(message)
public actual constructor(message: String?) : super(message)
actual constructor(message: String?, cause: Throwable?) : super(message, cause)
public actual constructor(message: String?, cause: Throwable?) : super(message, cause)
actual constructor(cause: Throwable?) : super(cause)
public actual constructor(cause: Throwable?) : super(cause)
}
@@ -6,7 +6,7 @@
package kotlin
public open class TypeCastException : ClassCastException {
constructor()
public constructor()
constructor(message: String?) : super(message)
public constructor(message: String?) : super(message)
}
@@ -6,11 +6,11 @@
package kotlin
public actual class UninitializedPropertyAccessException : RuntimeException {
actual constructor()
public actual constructor()
actual constructor(message: String?) : super(message)
public actual constructor(message: String?) : super(message)
actual constructor(message: String?, cause: Throwable?) : super(message, cause)
public actual constructor(message: String?, cause: Throwable?) : super(message, cause)
actual constructor(cause: Throwable?) : super(cause)
public actual constructor(cause: Throwable?) : super(cause)
}
@@ -8,11 +8,11 @@ package kotlin.jvm
import java.lang.Error
public open class KotlinReflectionNotSupportedError : Error {
constructor() : super("Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath")
public constructor() : super("Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath")
constructor(message: String?) : super(message)
public constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) : super(message, cause)
public constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(cause: Throwable?) : super(cause)
public constructor(cause: Throwable?) : super(cause)
}
@@ -18,7 +18,7 @@ private const val MAX_SIZE = Int.MAX_VALUE - 2 // empirically maximal array size
@Deprecated("This function will be made internal in a future release")
@DeprecatedSinceKotlin(warningSince = "1.9")
@JvmName("toArray")
fun collectionToArray(collection: Collection<*>): Array<Any?> =
public fun collectionToArray(collection: Collection<*>): Array<Any?> =
toArrayImpl(
collection,
empty = { EMPTY },
@@ -31,7 +31,7 @@ fun collectionToArray(collection: Collection<*>): Array<Any?> =
@Deprecated("This function will be made internal in a future release")
@DeprecatedSinceKotlin(warningSince = "1.9")
@JvmName("toArray")
fun collectionToArray(collection: Collection<*>, a: Array<Any?>?): Array<Any?> {
public fun collectionToArray(collection: Collection<*>, a: Array<Any?>?): Array<Any?> {
// Collection.toArray contract requires that NullPointerException is thrown when array is null
if (a == null) throw JavaNPE()
return toArrayImpl(