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:52:23 +03:00
parent 91b371789e
commit 606fad64ad
3 changed files with 19 additions and 1 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -114,6 +114,9 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
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.
*
@@ -279,6 +282,9 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
return this
}
@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.
*