We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b54035 commit a88cd34Copy full SHA for a88cd34
okio/src/commonMain/kotlin/okio/Options.kt
@@ -40,7 +40,7 @@ class Options private constructor(
40
// indexes to the caller's indexes.
41
val list = byteStrings.toMutableList()
42
list.sort()
43
- val indexes = mutableListOf(*byteStrings.map { -1 }.toTypedArray())
+ val indexes = MutableList(list.size) { -1 }
44
byteStrings.forEachIndexed { callerIndex, byteString ->
45
val sortedIndex = list.binarySearch(byteString)
46
indexes[sortedIndex] = callerIndex
0 commit comments