Migrate UseExperimental->OptIn in project sources

This commit is contained in:
Alexander Udalov
2020-01-28 15:35:42 +01:00
parent 125b39d9be
commit 795d6ab407
164 changed files with 213 additions and 211 deletions
@@ -6,7 +6,7 @@
package kotlin.collections
@UseExperimental(ExperimentalUnsignedTypes::class)
@OptIn(ExperimentalUnsignedTypes::class)
@SinceKotlin("1.3")
@kotlin.js.JsName("contentDeepHashCodeImpl")
internal fun <T> Array<out T>.contentDeepHashCodeImpl(): Int {
@@ -46,7 +46,7 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
return this
}
@UseExperimental(ExperimentalStdlibApi::class)
@OptIn(ExperimentalStdlibApi::class)
actual override fun append(value: CharSequence?, startIndex: Int, endIndex: Int): StringBuilder = this.appendRange(value, startIndex, endIndex)
/**
@@ -6,7 +6,7 @@
package kotlin.text
/** Returns the negative [size] if [throwOnMalformed] is false, throws [CharacterCodingException] otherwise. */
@UseExperimental(ExperimentalStdlibApi::class)
@OptIn(ExperimentalStdlibApi::class)
private fun malformed(size: Int, index: Int, throwOnMalformed: Boolean): Int {
if (throwOnMalformed) throw CharacterCodingException("Malformed sequence starting at ${index - 1}")
return -size