Minor, fix appendln deprecation warnings in cli

Can't use appendLine yet because this module is compiled with API
version 1.3.
This commit is contained in:
Alexander Udalov
2020-09-20 17:04:34 +02:00
committed by Alexander Udalov
parent f20a6b7fe1
commit 5755c32c84
2 changed files with 4 additions and 4 deletions
@@ -137,8 +137,8 @@ abstract class CommonCompilerPerformanceManager(private val presentableName: Str
} }
private fun createPerformanceReport(): ByteArray = buildString { private fun createPerformanceReport(): ByteArray = buildString {
appendln("$presentableName performance report") append("$presentableName performance report\n")
measurements.map { it.render() }.sorted().forEach { appendln(it) } measurements.map { it.render() }.sorted().forEach { append("$it\n") }
}.toByteArray() }.toByteArray()
open fun notifyRepeat(total: Int, number: Int) {} open fun notifyRepeat(total: Int, number: Int) {}
@@ -240,9 +240,9 @@ object JvmRuntimeVersionsConsistencyChecker {
if (oldestVersion == newestVersion) return oldestVersion if (oldestVersion == newestVersion) return oldestVersion
messageCollector.issue(null, buildString { messageCollector.issue(null, buildString {
appendln("Runtime JAR files in the classpath should have the same version. These files were found in the classpath:") append("Runtime JAR files in the classpath should have the same version. These files were found in the classpath:\n")
for (jar in jars) { for (jar in jars) {
appendln(" ${jar.file.path} (version ${jar.version})") append(" ${jar.file.path} (version ${jar.version})\n")
} }
}.trimEnd()) }.trimEnd())