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:
Ilya Matveev
2017-04-14 12:59:50 +07:00
committed by ilmat192
parent 321386d95e
commit 325210ae52
@@ -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++