stdlib: Remove TODO comment in ArrayUtil.kt
We don't need to handle cases when a count of objects provided by the iterator isn't equal to the size of the collection.
This commit is contained in:
@@ -67,7 +67,6 @@ internal fun <E, T> collectionToArray(collection: Collection<E>, array: Array<T>
|
||||
array
|
||||
}
|
||||
var i = 0
|
||||
// TODO: What about a concurrent modification of the collection? Do we need to handle it here?
|
||||
for (v in collection) {
|
||||
toArray[i] = v as T
|
||||
i++
|
||||
|
||||
Reference in New Issue
Block a user