StdLib cleanup: deprecated usages

This commit is contained in:
Ilya Gorbunov
2015-09-29 21:44:18 +03:00
parent 70d064052b
commit ff69b97030
7 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ class ComplexMapJsTest : MapJsTest() {
doTest<String>()
}
override fun <T : kotlin.Comparable<T>> Collection<T>.toNormalizedList(): List<T> = this.toSortedList()
override fun <T : kotlin.Comparable<T>> Collection<T>.toNormalizedList(): List<T> = this.sorted()
// hashMapOf returns ComlpexHashMap because it is Generic
override fun emptyMutableMap(): MutableMap<String, Int> = genericHashMapOf()
override fun emptyMutableMapWithNullableKeyValue(): MutableMap<String?, Int?> = genericHashMapOf()
@@ -39,7 +39,7 @@ class PrimitiveMapJsTest : MapJsTest() {
assertEquals(VALUES.toNormalizedList(), map.values().toNormalizedList())
}
override fun <T : kotlin.Comparable<T>> Collection<T>.toNormalizedList(): List<T> = this.toSortedList()
override fun <T : kotlin.Comparable<T>> Collection<T>.toNormalizedList(): List<T> = this.sorted()
override fun emptyMutableMap(): MutableMap<String, Int> = HashMap()
override fun emptyMutableMapWithNullableKeyValue(): MutableMap<String?, Int?> = HashMap()