Replace appendln with appendLine in project
This commit is contained in:
+2
-2
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
+8
-8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user