Deprecate toGenerator and toLinkedList extensions.

This commit is contained in:
Ilya Gorbunov
2015-10-29 20:54:06 +03:00
parent 0997f78764
commit 3a82225201
6 changed files with 26 additions and 13 deletions
@@ -962,8 +962,9 @@ public fun <T> Iterable<T>.toHashSet(): HashSet<T> {
/**
* Returns a [LinkedList] containing all elements.
*/
@Deprecated("Use toCollection(LinkedList()) instead.", ReplaceWith("toCollection(LinkedList())"))
public fun <T> Iterable<T>.toLinkedList(): LinkedList<T> {
return toCollection(LinkedList<T>())
return toCollection(LinkedList())
}
/**