Skip to content

Commit b3fffd7

Browse files
committed
Flaky IteratorTest bails not fails
1 parent 4c429d9 commit b3fffd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/collection/Iterator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,8 @@ trait Iterator[+A] extends IterableOnce[A] with IterableOnceOps[A, Iterator, Ite
589589
/** Trillium logic boolean: -1 = unknown, 0 = false, 1 = true */
590590
private[this] var _hasNext: Int = -1
591591

592-
private[this] def nextCur(): Unit = {
593-
cur = null
592+
def nextCur(): Unit = {
593+
cur = Iterator.empty
594594
cur = f(self.next()).iterator
595595
_hasNext = -1
596596
}

0 commit comments

Comments
 (0)