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
@@ -173,22 +173,22 @@ abstract class AbstractBuilderConfigurator<T : AbstractFirTreeBuilder>(val firTr
return if (type == null) {
allImplementations.filter { it.kind?.hasLeafBuilder == true }.singleOrNull() ?: this@AbstractBuilderConfigurator.run {
val message = buildString {
appendln("${this@extractImplementation} has multiple implementations:")
appendLine("${this@extractImplementation} has multiple implementations:")
for (implementation in allImplementations) {
appendln(" - ${implementation.type}")
appendLine(" - ${implementation.type}")
}
appendln("Please specify implementation is needed")
appendLine("Please specify implementation is needed")
}
throw IllegalArgumentException(message)
}
} else {
allImplementations.firstOrNull { it.type == type } ?: this@AbstractBuilderConfigurator.run {
val message = buildString {
appendln("${this@extractImplementation} has not implementation $type. Existing implementations:")
appendLine("${this@extractImplementation} has not implementation $type. Existing implementations:")
for (implementation in allImplementations) {
appendln(" - ${implementation.type}")
appendLine(" - ${implementation.type}")
}
appendln("Please specify implementation is needed")
appendLine("Please specify implementation is needed")
}
throw IllegalArgumentException(message)
}