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:
@@ -176,6 +176,9 @@ actual class StringBuilder private constructor (
|
|||||||
return this
|
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.
|
* 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())
|
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.
|
* Inserts the string [value] into this string builder at the specified [index] and returns this instance.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user