Remove hidden Random.Companion

It was never released as stable since 1.3. Was provided for binary
compatibility with 1.3 prereleases.
This commit is contained in:
Ilya Gorbunov
2020-06-19 00:31:17 +03:00
parent b55729957e
commit 5550dc93a1
+1 -11
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -261,16 +261,6 @@ public abstract class Random {
override fun nextBytes(array: ByteArray): ByteArray = defaultRandom.nextBytes(array)
override fun nextBytes(size: Int): ByteArray = defaultRandom.nextBytes(size)
override fun nextBytes(array: ByteArray, fromIndex: Int, toIndex: Int): ByteArray = defaultRandom.nextBytes(array, fromIndex, toIndex)
@Deprecated("Use Default companion object instead", level = DeprecationLevel.HIDDEN)
@Suppress("DEPRECATION_ERROR")
@kotlin.jvm.JvmField
public val Companion: Random.Companion = Random.Companion
}
@Deprecated("Use Default companion object instead", level = DeprecationLevel.HIDDEN)
public object Companion : Random() {
override fun nextBits(bitCount: Int): Int = Default.nextBits(bitCount)
}
}