From 325210ae52fc67c606347440cba192d738e50025 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Fri, 14 Apr 2017 12:59:50 +0700 Subject: [PATCH] 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. --- runtime/src/main/kotlin/kotlin/collections/ArrayUtil.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/src/main/kotlin/kotlin/collections/ArrayUtil.kt b/runtime/src/main/kotlin/kotlin/collections/ArrayUtil.kt index 579d6daf3cd..ce412e16792 100644 --- a/runtime/src/main/kotlin/kotlin/collections/ArrayUtil.kt +++ b/runtime/src/main/kotlin/kotlin/collections/ArrayUtil.kt @@ -67,7 +67,6 @@ internal fun collectionToArray(collection: Collection, array: Array 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++