Leave StringBuilder.append/insert with non-nullable String parameter

Leave these methods as hidden in order to preserve binary compatibility.

#KT-39504
This commit is contained in:
Ilya Gorbunov
2020-06-18 09:56:16 +03:00
committed by ilya-g
parent 6008d12ce5
commit 414da4c07f
@@ -176,6 +176,9 @@ actual class StringBuilder private constructor (
return this
}
@Deprecated("Provided for binary compatibility.", level = DeprecationLevel.HIDDEN)
fun append(value: String): StringBuilder = append(value)
/**
* Appends the specified string [value] to this string builder and returns this instance.
*
@@ -338,6 +341,9 @@ actual class StringBuilder private constructor (
*/
actual fun insert(index: Int, value: Any?): StringBuilder = insert(index, value.toString())
@Deprecated("Provided for binary compatibility.", level = DeprecationLevel.HIDDEN)
fun insert(index: Int, value: String): StringBuilder = insert(index, value)
/**
* Inserts the string [value] into this string builder at the specified [index] and returns this instance.
*