diff options
author | Paul Phillips <paulp@improving.org> | 2009-08-07 10:11:24 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-08-07 10:11:24 +0000 |
commit | 5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d (patch) | |
tree | 09719e36a9a9ed8ca81285ef937017dd04c34c92 | |
parent | acdf9452c9932d2b07d3eb907542b705fbda1c28 (diff) | |
download | scala-5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d.tar.gz scala-5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d.tar.bz2 scala-5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d.zip |
Fixed #2235.
-rw-r--r-- | src/library/scala/collection/mutable/ListBuffer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/ListBuffer.scala b/src/library/scala/collection/mutable/ListBuffer.scala index d1d0bb62ed..4b2bfcf6b0 100644 --- a/src/library/scala/collection/mutable/ListBuffer.scala +++ b/src/library/scala/collection/mutable/ListBuffer.scala @@ -279,7 +279,7 @@ final class ListBuffer[A] override def iterator = new Iterator[A] { var cursor: List[A] = null - def hasNext: Boolean = !start.isEmpty && cursor != last0 + def hasNext: Boolean = !start.isEmpty && (cursor ne last0) def next(): A = if (!hasNext) { throw new NoSuchElementException("next on empty Iterator") |