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:
committed by
Alexander Udalov
parent
f20a6b7fe1
commit
5755c32c84
+2
-2
@@ -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) {}
|
||||
|
||||
+2
-2
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user