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())