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:
@@ -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.
|
* 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(array: ByteArray): ByteArray = defaultRandom.nextBytes(array)
|
||||||
override fun nextBytes(size: Int): ByteArray = defaultRandom.nextBytes(size)
|
override fun nextBytes(size: Int): ByteArray = defaultRandom.nextBytes(size)
|
||||||
override fun nextBytes(array: ByteArray, fromIndex: Int, toIndex: Int): ByteArray = defaultRandom.nextBytes(array, fromIndex, toIndex)
|
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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user