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