Advance K/N StringBuilder.appendln() deprecation level to ERROR #KT-38754

This commit is contained in:
Abduqodiri Qurbonzoda
2021-09-16 21:54:25 +03:00
parent c704fd6ae7
commit 93833f7db2
2 changed files with 21 additions and 11 deletions
@@ -9,6 +9,6 @@ import kotlin.test.*
@Test fun runTest() {
val a = StringBuilder()
a.append("Hello").appendln("Kotlin").appendln(42).appendln(0.1).appendln(true)
a.append("Hello").appendLine("Kotlin").appendLine(42).appendLine(0.1).appendLine(true)
println(a.toString())
}
@@ -36,32 +36,42 @@ public inline fun StringBuilder.appendLine(value: Float): StringBuilder = append
public inline fun StringBuilder.appendLine(value: Double): StringBuilder = append(value).appendLine()
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: String): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Boolean): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Byte): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Short): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Int): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Long): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Float): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Double): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine(it)"))
public fun StringBuilder.appendln(it: Any?): StringBuilder = appendLine(it)
@Deprecated("Use appendLine instead", ReplaceWith("appendLine()"), level = DeprecationLevel.WARNING)
@DeprecatedSinceKotlin(warningSince = "1.4", errorSince = "1.6")
@Deprecated("Use appendLine instead", ReplaceWith("appendLine()"))
public fun StringBuilder.appendln(): StringBuilder = appendLine()