Replace splitBy with split
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user