Skip to content

Commit af3df77

Browse files
committed
cast away nullability in CollisionProofHashMap.next
1 parent 5029b89 commit af3df77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/collection/mutable/CollisionProofHashMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ final class CollisionProofHashMap[K, V](initialCapacity: Int, loadFactor: Double
243243

244244
def next(): R =
245245
if(!hasNext) Iterator.empty.next()
246-
else node match {
246+
else node.nn match {
247247
case n: RBNode @uc =>
248248
val r = extract(n)
249249
node = CollisionProofHashMap.successor(n )

0 commit comments

Comments
 (0)