[K/N] Deprecate SharedImmutable annotation #KT-57837
As a part of efforts to stabilize Native stdlib.
This commit is contained in:
committed by
Space Team
parent
0cfb80144a
commit
4ae19b2b44
@@ -5,7 +5,6 @@
|
||||
|
||||
package test.comparisons
|
||||
|
||||
import kotlin.native.concurrent.SharedImmutable
|
||||
import kotlin.test.*
|
||||
|
||||
data class Item(val name: String, val rating: Int) : Comparable<Item> {
|
||||
@@ -14,7 +13,6 @@ data class Item(val name: String, val rating: Int) : Comparable<Item> {
|
||||
}
|
||||
}
|
||||
|
||||
@SharedImmutable
|
||||
val STRING_CASE_INSENSITIVE_ORDER: Comparator<String> =
|
||||
compareBy { it: String -> it.uppercase() }.thenBy { it.lowercase() }.thenBy { it }
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import test.*
|
||||
import test.collections.behaviors.iteratorBehavior
|
||||
import test.collections.compare
|
||||
import kotlin.math.sign
|
||||
import kotlin.native.concurrent.SharedImmutable
|
||||
import kotlin.random.Random
|
||||
|
||||
|
||||
@@ -18,7 +17,6 @@ fun createString(content: String): CharSequence = content
|
||||
fun createStringBuilder(content: String): CharSequence = StringBuilder((content as Any).toString()) // required for Rhino JS
|
||||
|
||||
|
||||
@SharedImmutable
|
||||
val charSequenceBuilders = listOf(::createString, ::createStringBuilder)
|
||||
|
||||
fun withOneCharSequenceArg(f: ((String) -> CharSequence) -> Unit) {
|
||||
|
||||
@@ -9,7 +9,6 @@ package test.time
|
||||
import test.numbers.assertAlmostEquals
|
||||
import kotlin.math.nextDown
|
||||
import kotlin.math.pow
|
||||
import kotlin.native.concurrent.SharedImmutable
|
||||
import kotlin.test.*
|
||||
import kotlin.time.*
|
||||
import kotlin.random.*
|
||||
@@ -21,7 +20,6 @@ import kotlin.time.Duration.Companion.minutes
|
||||
import kotlin.time.Duration.Companion.nanoseconds
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
@SharedImmutable
|
||||
private val units = DurationUnit.values()
|
||||
|
||||
class DurationTest {
|
||||
|
||||
Reference in New Issue
Block a user