Replace appendln with appendLine in project

This commit is contained in:
Alexander Udalov
2020-06-09 21:09:45 +02:00
parent d1c88798df
commit 6e67e1e78d
76 changed files with 405 additions and 402 deletions
@@ -258,9 +258,9 @@ class PerformanceNativeProjectsTest : AbstractPerformanceProjectsTest() {
buildString {
originalKtFileContents.forEachIndexed { index, line ->
if (index == packageLineIndex) {
appendln(line.replace("perfTestPackage1", "perfTestPackage$n"))
appendLine(line.replace("perfTestPackage1", "perfTestPackage$n"))
} else {
appendln(line)
appendLine(line)
}
}
}
@@ -36,7 +36,7 @@ class Stats(
init {
statsOutput = statsFile.bufferedWriter()
statsOutput.appendln(header.joinToString())
statsOutput.appendLine(header.joinToString())
PerformanceCounter.setTimeCounterEnabled(true)
}
@@ -110,7 +110,7 @@ class Stats(
private fun append(values: Array<Any>) {
require(values.size == header.size) { "Expected ${header.size} values, actual ${values.size} values" }
with(statsOutput) {
appendln(values.joinToString { it.toString() })
appendLine(values.joinToString { it.toString() })
flush()
}
}
@@ -52,20 +52,20 @@ class StatefulTestGradleProjectRefreshCallback(
val error = error ?: return
val failure = buildString {
appendln("Gradle import failed for ${project.name} at $projectPath")
appendLine("Gradle import failed for ${project.name} at $projectPath")
project.guessProjectDir()
append("=".repeat(40)).appendln(" Error message:")
appendln(error.message.trimEnd())
append("=".repeat(40)).appendLine(" Error message:")
appendLine(error.message.trimEnd())
append("=".repeat(40)).appendln(" Error details:")
appendln(error.details?.trimEnd().orEmpty())
append("=".repeat(40)).appendLine(" Error details:")
appendLine(error.details?.trimEnd().orEmpty())
append("=".repeat(40)).appendln(" Gradle process output:")
appendln(GradleProcessOutputInterceptor.getInstance()?.getOutput()?.trimEnd() ?: "<interceptor not installed>")
append("=".repeat(40)).appendLine(" Gradle process output:")
appendLine(GradleProcessOutputInterceptor.getInstance()?.getOutput()?.trimEnd() ?: "<interceptor not installed>")
appendln("=".repeat(40))
appendLine("=".repeat(40))
}
fail(failure)