Replace JVM StringBuilder.appendln usages with appendLine

This commit is contained in:
Abduqodiri Qurbonzoda
2021-09-16 21:56:53 +03:00
parent aea2db97c5
commit 83364d78f5
3 changed files with 15 additions and 16 deletions
@@ -13,18 +13,17 @@ internal data class CInteropCommonizerGroup(
@get:Input val targets: Set<SharedCommonizerTarget>,
@get:Input val interops: Set<CInteropIdentifier>
) {
@Suppress("deprecation")
override fun toString(): String {
return buildString {
appendln("InteropsGroup {")
appendln("targets: ")
appendLine("InteropsGroup {")
appendLine("targets: ")
targets.sortedBy { it.targets.size }.forEach { target ->
appendln(" $target")
appendLine(" $target")
}
appendln()
appendln("interops: ")
appendLine()
appendLine("interops: ")
interops.sortedBy { it.toString() }.forEach { interop ->
appendln(" $interop")
appendLine(" $interop")
}
appendLine("}")
}