diff --git a/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt b/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt index 806549d23da..650dfc4a559 100644 --- a/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt +++ b/libraries/stdlib/js/src/kotlin/text/StringBuilderJs.kt @@ -107,7 +107,7 @@ public actual class StringBuilder public actual constructor(content: String) : A * and then that string was appended to this string builder. */ @SinceKotlin("1.9") - public actual fun append(value: Byte): StringBuilder = append(value.toString()) + public fun append(value: Byte): StringBuilder = append(value.toString()) /** * Appends the string representation of the specified short [value] to this string builder and returns this instance. @@ -116,7 +116,7 @@ public actual class StringBuilder public actual constructor(content: String) : A * and then that string was appended to this string builder. */ @SinceKotlin("1.9") - public actual fun append(value: Short): StringBuilder = append(value.toString()) + public fun append(value: Short): StringBuilder = append(value.toString()) /** * Appends the string representation of the specified int [value] to this string builder and returns this instance. @@ -264,7 +264,7 @@ public actual class StringBuilder public actual constructor(content: String) : A * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. */ @SinceKotlin("1.9") - public actual fun insert(index: Int, value: Byte): StringBuilder = insert(index, value.toString()) + public fun insert(index: Int, value: Byte): StringBuilder = insert(index, value.toString()) /** * Inserts the string representation of the specified short [value] into this string builder at the specified [index] and returns this instance. @@ -275,7 +275,7 @@ public actual class StringBuilder public actual constructor(content: String) : A * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. */ @SinceKotlin("1.9") - public actual fun insert(index: Int, value: Short): StringBuilder = insert(index, value.toString()) + public fun insert(index: Int, value: Short): StringBuilder = insert(index, value.toString()) /** * Inserts the string representation of the specified int [value] into this string builder at the specified [index] and returns this instance. diff --git a/libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt b/libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt index 57a43989326..93b9965ce02 100644 --- a/libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt @@ -158,7 +158,7 @@ private constructor (private var array: CharArray) : CharSequence, Appendable { * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, * and then that string was appended to this string builder. */ - public actual fun append(value: Byte): StringBuilder = append(value.toString()) + public fun append(value: Byte): StringBuilder = append(value.toString()) /** * Appends the string representation of the specified short [value] to this string builder and returns this instance. @@ -166,7 +166,7 @@ private constructor (private var array: CharArray) : CharSequence, Appendable { * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, * and then that string was appended to this string builder. */ - public actual fun append(value: Short): StringBuilder = append(value.toString()) + public fun append(value: Short): StringBuilder = append(value.toString()) /** * Appends the string representation of the specified int [value] to this string builder and returns this instance. @@ -312,7 +312,7 @@ private constructor (private var array: CharArray) : CharSequence, Appendable { * * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. */ - public actual fun insert(index: Int, value: Byte): StringBuilder = insert(index, value.toString()) + public fun insert(index: Int, value: Byte): StringBuilder = insert(index, value.toString()) /** * Inserts the string representation of the specified short [value] into this string builder at the specified [index] and returns this instance. @@ -322,7 +322,7 @@ private constructor (private var array: CharArray) : CharSequence, Appendable { * * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. */ - public actual fun insert(index: Int, value: Short): StringBuilder = insert(index, value.toString()) + public fun insert(index: Int, value: Short): StringBuilder = insert(index, value.toString()) /** * Inserts the string representation of the specified int [value] into this string builder at the specified [index] and returns this instance. diff --git a/libraries/stdlib/src/kotlin/text/StringBuilder.kt b/libraries/stdlib/src/kotlin/text/StringBuilder.kt index 9bd6a469cff..5ecf8293454 100644 --- a/libraries/stdlib/src/kotlin/text/StringBuilder.kt +++ b/libraries/stdlib/src/kotlin/text/StringBuilder.kt @@ -69,24 +69,6 @@ public expect class StringBuilder : Appendable, CharSequence { @SinceKotlin("1.3") public fun append(value: Boolean): StringBuilder - /** - * Appends the string representation of the specified byte [value] to this string builder and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was appended to this string builder. - */ - @SinceKotlin("1.9") - public fun append(value: Byte): StringBuilder - - /** - * Appends the string representation of the specified short [value] to this string builder and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was appended to this string builder. - */ - @SinceKotlin("1.9") - public fun append(value: Short): StringBuilder - /** * Appends the string representation of the specified int [value] to this string builder and returns this instance. * @@ -204,28 +186,6 @@ public expect class StringBuilder : Appendable, CharSequence { @SinceKotlin("1.4") public fun insert(index: Int, value: Boolean): StringBuilder - /** - * Inserts the string representation of the specified byte [value] into this string builder at the specified [index] and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was inserted into this string builder at the specified [index]. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.9") - public fun insert(index: Int, value: Byte): StringBuilder - - /** - * Inserts the string representation of the specified short [value] into this string builder at the specified [index] and returns this instance. - * - * The overall effect is exactly as if the [value] were converted to a string by the `value.toString()` method, - * and then that string was inserted into this string builder at the specified [index]. - * - * @throws IndexOutOfBoundsException if [index] is less than zero or greater than the length of this string builder. - */ - @SinceKotlin("1.9") - public fun insert(index: Int, value: Short): StringBuilder - /** * Inserts the string representation of the specified int [value] into this string builder at the specified [index] and returns this instance. *