From 5755c32c84c17f5b7227e48e2b386bb7faafc185 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Sun, 20 Sep 2020 17:04:34 +0200 Subject: [PATCH] Minor, fix appendln deprecation warnings in cli Can't use appendLine yet because this module is compiled with API version 1.3. --- .../kotlin/cli/common/CommonCompilerPerformanceManager.kt | 4 ++-- .../kotlin/cli/jvm/JvmRuntimeVersionsConsistencyChecker.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/common/CommonCompilerPerformanceManager.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/common/CommonCompilerPerformanceManager.kt index daada909def..3085783a6f9 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/common/CommonCompilerPerformanceManager.kt +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/common/CommonCompilerPerformanceManager.kt @@ -137,8 +137,8 @@ abstract class CommonCompilerPerformanceManager(private val presentableName: Str } private fun createPerformanceReport(): ByteArray = buildString { - appendln("$presentableName performance report") - measurements.map { it.render() }.sorted().forEach { appendln(it) } + append("$presentableName performance report\n") + measurements.map { it.render() }.sorted().forEach { append("$it\n") } }.toByteArray() open fun notifyRepeat(total: Int, number: Int) {} diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/JvmRuntimeVersionsConsistencyChecker.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/JvmRuntimeVersionsConsistencyChecker.kt index 6379f308f5a..48aa3a183b5 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/JvmRuntimeVersionsConsistencyChecker.kt +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/JvmRuntimeVersionsConsistencyChecker.kt @@ -240,9 +240,9 @@ object JvmRuntimeVersionsConsistencyChecker { if (oldestVersion == newestVersion) return oldestVersion 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) { - appendln(" ${jar.file.path} (version ${jar.version})") + append(" ${jar.file.path} (version ${jar.version})\n") } }.trimEnd())