Replace splitBy with split

This commit is contained in:
Ilya Gorbunov
2015-10-01 20:25:20 +03:00
parent 25df3aac11
commit 80e4ba8712
2 changed files with 3 additions and 3 deletions
@@ -328,7 +328,7 @@ public abstract class AbstractKotlinEvaluateExpressionTest : KotlinDebuggerTestB
val markupMap = hashMapOf<com.sun.jdi.Value, ValueMarkup>()
for (labelAsText in labelsAsText) {
val labelParts = labelAsText.splitBy("=")
val labelParts = labelAsText.split("=")
assert(labelParts.size() == 2) { "Wrong format for DEBUG_LABEL directive: // DEBUG_LABEL: {localVariableName} = {labelText}"}
val localVariableName = labelParts[0].trim()
val labelName = labelParts[1].trim()
@@ -90,10 +90,10 @@ public abstract class MultipleModulesTranslationTest(main: String) : BasicTest(m
val result = LinkedHashMap<String, List<String>>()
for (line in dependenciesTxt.readLines()) {
val split = line.splitBy("->")
val split = line.split("->")
val module = split[0]
val dependencies = if (split.size() > 1) split[1] else ""
val dependencyList = dependencies.splitBy(",").filterNot { it.isEmpty() }
val dependencyList = dependencies.split(",").filterNot { it.isEmpty() }
result[module] = dependencyList
}