diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-11-13 14:59:18 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-11-13 14:59:18 +0000 |
commit | f3047df95f007d48d0049ff78448d27045b20445 (patch) | |
tree | 47e848f238fad00e117a4244ec69c229945301df /src/library/scala/collection/mutable/MutableList.scala | |
parent | ac255eaf858397ee14b8ffafd8066b100d5e6be4 (diff) | |
download | scala-f3047df95f007d48d0049ff78448d27045b20445.tar.gz scala-f3047df95f007d48d0049ff78448d27045b20445.tar.bz2 scala-f3047df95f007d48d0049ff78448d27045b20445.zip |
Replaced == null()eq null(ne null)
Diffstat (limited to 'src/library/scala/collection/mutable/MutableList.scala')
-rw-r--r-- | src/library/scala/collection/mutable/MutableList.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/mutable/MutableList.scala b/src/library/scala/collection/mutable/MutableList.scala index 6e57074641..8983949aaa 100644 --- a/src/library/scala/collection/mutable/MutableList.scala +++ b/src/library/scala/collection/mutable/MutableList.scala @@ -69,12 +69,12 @@ trait MutableList[A] extends Seq[A] with PartialFunction[Int, A] { /** Returns an iterator over all elements of this list. */ def elements: Iterator[A] = - if (first == null) Nil.elements else first.elements + if (first eq null) Nil.elements else first.elements /** Returns an instance of <code>scala.List</code> containing the same * sequence of elements. */ - override def toList: List[A] = if (first == null) Nil else first.toList + override def toList: List[A] = if (first eq null) Nil else first.toList override protected def stringPrefix: String = "MutableList" } |