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:
@@ -1225,6 +1225,9 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
|||||||
|
|
||||||
public open override fun append(value: kotlin.CharSequence?, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
public open override fun append(value: kotlin.CharSequence?, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||||
|
|
||||||
|
@kotlin.Deprecated(level = DeprecationLevel.HIDDEN, message = "Provided for binary compatibility.")
|
||||||
|
public final fun append(value: kotlin.String): kotlin.text.StringBuilder
|
||||||
|
|
||||||
@kotlin.SinceKotlin(version = "1.3")
|
@kotlin.SinceKotlin(version = "1.3")
|
||||||
public final fun append(value: kotlin.String?): kotlin.text.StringBuilder
|
public final fun append(value: kotlin.String?): kotlin.text.StringBuilder
|
||||||
|
|
||||||
@@ -1285,6 +1288,9 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
|||||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||||
public final fun insert(index: kotlin.Int, value: kotlin.CharSequence?): kotlin.text.StringBuilder
|
public final fun insert(index: kotlin.Int, value: kotlin.CharSequence?): kotlin.text.StringBuilder
|
||||||
|
|
||||||
|
@kotlin.Deprecated(level = DeprecationLevel.HIDDEN, message = "Provided for binary compatibility.")
|
||||||
|
public final fun insert(index: kotlin.Int, value: kotlin.String): kotlin.text.StringBuilder
|
||||||
|
|
||||||
@kotlin.SinceKotlin(version = "1.4")
|
@kotlin.SinceKotlin(version = "1.4")
|
||||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||||
public final fun insert(index: kotlin.Int, value: kotlin.String?): kotlin.text.StringBuilder
|
public final fun insert(index: kotlin.Int, value: kotlin.String?): kotlin.text.StringBuilder
|
||||||
|
|||||||
@@ -1225,6 +1225,9 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
|||||||
|
|
||||||
public open override fun append(value: kotlin.CharSequence?, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
public open override fun append(value: kotlin.CharSequence?, startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.text.StringBuilder
|
||||||
|
|
||||||
|
@kotlin.Deprecated(level = DeprecationLevel.HIDDEN, message = "Provided for binary compatibility.")
|
||||||
|
public final fun append(value: kotlin.String): kotlin.text.StringBuilder
|
||||||
|
|
||||||
@kotlin.SinceKotlin(version = "1.3")
|
@kotlin.SinceKotlin(version = "1.3")
|
||||||
public final fun append(value: kotlin.String?): kotlin.text.StringBuilder
|
public final fun append(value: kotlin.String?): kotlin.text.StringBuilder
|
||||||
|
|
||||||
@@ -1285,6 +1288,9 @@ public final class StringBuilder : kotlin.text.Appendable, kotlin.CharSequence {
|
|||||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||||
public final fun insert(index: kotlin.Int, value: kotlin.CharSequence?): kotlin.text.StringBuilder
|
public final fun insert(index: kotlin.Int, value: kotlin.CharSequence?): kotlin.text.StringBuilder
|
||||||
|
|
||||||
|
@kotlin.Deprecated(level = DeprecationLevel.HIDDEN, message = "Provided for binary compatibility.")
|
||||||
|
public final fun insert(index: kotlin.Int, value: kotlin.String): kotlin.text.StringBuilder
|
||||||
|
|
||||||
@kotlin.SinceKotlin(version = "1.4")
|
@kotlin.SinceKotlin(version = "1.4")
|
||||||
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
|
||||||
public final fun insert(index: kotlin.Int, value: kotlin.String?): kotlin.text.StringBuilder
|
public final fun insert(index: kotlin.Int, value: kotlin.String?): kotlin.text.StringBuilder
|
||||||
|
|||||||
@@ -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.
|
* 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
|
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.
|
||||||
*
|
*
|
||||||
@@ -279,6 +282,9 @@ public actual class StringBuilder actual constructor(content: String) : Appendab
|
|||||||
return this
|
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.
|
* Inserts the string [value] into this string builder at the specified [index] and returns this instance.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user