[K/N] Remove deprecation from StringBuilder.capacity() function

As a part of efforts to stabilize K/N stdlib.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-08 23:15:06 +03:00
committed by Space Team
parent 208b279d2b
commit 88181404df
@@ -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
/**