You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlinx-collections-immutable/src/main/kotlin/kotlinx/collections/immutable/implementations/immutableMap/PersistentHashMapBuilder.kt
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,13 @@ internal class PersistentHashMapBuilder<K, V>(private var map: PersistentHashMap
Copy file name to clipboardExpand all lines: kotlinx-collections-immutable/src/main/kotlin/kotlinx/collections/immutable/implementations/immutableMap/TrieNode.kt
+40-2Lines changed: 40 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,7 @@ internal class TrieNode<K, V>(var dataMap: Int,
Copy file name to clipboardExpand all lines: kotlinx-collections-immutable/src/main/kotlin/kotlinx/collections/immutable/implementations/persistentOrderedMap/PersistentOrderedMapBuilder.kt
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,17 @@ internal class PersistentOrderedMapBuilder<K, V>(private var map: PersistentOrde
Copy file name to clipboardExpand all lines: kotlinx-collections-immutable/tests/src/test/kotlin/kotlinx.collections.immutable/stressTests/WrapperGenerator.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -32,14 +32,14 @@ class WrapperGenerator<K: Comparable<K>>(private val hashCodeUpperBound: Int) {
32
32
val wrapper =ObjectWrapper(element, hashCode)
33
33
elementMap[element] = wrapper
34
34
35
-
val wrappers = hashCodeMap.getOrDefault(hashCode, mutableListOf())
35
+
val wrappers = hashCodeMap[hashCode] ?:mutableListOf()
0 commit comments