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
@@ -96,8 +96,8 @@ abstract class AbstractKaptToolIntegrationTest : TestCaseWithTmpdir() {
if (!process.waitFor(2, TimeUnit.MINUTES)) err("Process is still alive")
if (process.exitValue() != 0) {
throw GotResult(buildString {
append("Return code: ").appendln(process.exitValue()).appendln()
appendln(outputFile.readText())
append("Return code: ").appendLine(process.exitValue()).appendLine()
appendLine(outputFile.readText())
})
}
}
@@ -117,6 +117,6 @@ private val Section.args get() = readArgumentsFromArgFile(preprocessPathSeparato
private fun preprocessPathSeparators(text: String): String = buildString {
for (line in text.lineSequence()) {
val transformed = if (line.startsWith("-cp ")) line.replace(':', File.pathSeparatorChar) else line
appendln(transformed)
appendLine(transformed)
}
}
@@ -33,7 +33,7 @@ class Section(val name: String, val content: String) {
saveCurrent()
currentName = line.drop(2)
} else {
currentContent.appendln(line)
currentContent.appendLine(line)
}
}
@@ -45,8 +45,8 @@ class Section(val name: String, val content: String) {
fun List<Section>.render(): String = buildString {
for (section in this@render) {
append(SECTION_INDICATOR).appendln(section.name)
appendln(section.content).appendln()
append(SECTION_INDICATOR).appendLine(section.name)
appendLine(section.content).appendLine()
}
}.trim()