summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-08-07 10:11:24 +0000
committerPaul Phillips <paulp@improving.org>2009-08-07 10:11:24 +0000
commit5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d (patch)
tree09719e36a9a9ed8ca81285ef937017dd04c34c92 /src
parentacdf9452c9932d2b07d3eb907542b705fbda1c28 (diff)
downloadscala-5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d.tar.gz
scala-5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d.tar.bz2
scala-5f8b4d25957c8a807eb1c77bfc76c4c17ccd112d.zip
Fixed #2235.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/mutable/ListBuffer.scala2
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")