Advance K/N StringBuilder.appendln() deprecation level to ERROR #KT-38754
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user