From 88181404dfa78f56d2751771658b6ba9086ac3b7 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Sat, 8 Apr 2023 23:15:06 +0300 Subject: [PATCH] [K/N] Remove deprecation from StringBuilder.capacity() function As a part of efforts to stabilize K/N stdlib. --- libraries/stdlib/src/kotlin/text/StringBuilder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/stdlib/src/kotlin/text/StringBuilder.kt b/libraries/stdlib/src/kotlin/text/StringBuilder.kt index 966d1db040d..1484036c39f 100644 --- a/libraries/stdlib/src/kotlin/text/StringBuilder.kt +++ b/libraries/stdlib/src/kotlin/text/StringBuilder.kt @@ -90,10 +90,10 @@ expect class StringBuilder : Appendable, CharSequence { * Returns the current capacity of this string builder. * * The capacity is the maximum length this string builder can have before an allocation occurs. + * + * In Kotlin/JS implementation of StringBuilder the value returned from this method may not indicate the actual size of the backing storage. */ @SinceKotlin("1.3") -// @ExperimentalStdlibApi - @Deprecated("Obtaining StringBuilder capacity is not supported in JS and common code.", level = DeprecationLevel.ERROR) fun capacity(): Int /**