[K/JS] Loosen StringBuilder.capacity() deprecation level to WARNING

This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-19 22:30:34 +03:00
committed by Space Team
parent e20b1239fe
commit 040fcee04e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1505,7 +1505,7 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
public final fun appendRange(value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
@kotlin.SinceKotlin(version = "1.3")
@kotlin.Deprecated(level = DeprecationLevel.ERROR, message = "Obtaining StringBuilder capacity is not supported in JS and common code.")
@kotlin.Deprecated(level = DeprecationLevel.WARNING, message = "Obtaining StringBuilder capacity is not supported in JS and common code.")
public final fun capacity(): kotlin.Int
@kotlin.SinceKotlin(version = "1.3")
+1 -1
View File
@@ -1505,7 +1505,7 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
public final fun appendRange(value: kotlin.CharSequence, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
@kotlin.SinceKotlin(version = "1.3")
@kotlin.Deprecated(level = DeprecationLevel.ERROR, message = "Obtaining StringBuilder capacity is not supported in JS and common code.")
@kotlin.Deprecated(level = DeprecationLevel.WARNING, message = "Obtaining StringBuilder capacity is not supported in JS and common code.")
public final fun capacity(): kotlin.Int
@kotlin.SinceKotlin(version = "1.3")
@@ -132,7 +132,7 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
*/
@SinceKotlin("1.3")
// @ExperimentalStdlibApi
@Deprecated("Obtaining StringBuilder capacity is not supported in JS and common code.", level = DeprecationLevel.ERROR)
@Deprecated("Obtaining StringBuilder capacity is not supported in JS and common code.", level = DeprecationLevel.WARNING)
actual fun capacity(): Int = length
/**