summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/DoubleLinkedList.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-11-13 14:59:18 +0000
committermihaylov <mihaylov@epfl.ch>2006-11-13 14:59:18 +0000
commitf3047df95f007d48d0049ff78448d27045b20445 (patch)
tree47e848f238fad00e117a4244ec69c229945301df /src/library/scala/collection/mutable/DoubleLinkedList.scala
parentac255eaf858397ee14b8ffafd8066b100d5e6be4 (diff)
downloadscala-f3047df95f007d48d0049ff78448d27045b20445.tar.gz
scala-f3047df95f007d48d0049ff78448d27045b20445.tar.bz2
scala-f3047df95f007d48d0049ff78448d27045b20445.zip
Replaced == null()eq null(ne null)
Diffstat (limited to 'src/library/scala/collection/mutable/DoubleLinkedList.scala')
-rw-r--r--src/library/scala/collection/mutable/DoubleLinkedList.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/scala/collection/mutable/DoubleLinkedList.scala b/src/library/scala/collection/mutable/DoubleLinkedList.scala
index f2916d39e9..5ed7a5dbb8 100644
--- a/src/library/scala/collection/mutable/DoubleLinkedList.scala
+++ b/src/library/scala/collection/mutable/DoubleLinkedList.scala
@@ -28,24 +28,24 @@ abstract class DoubleLinkedList[A, This >: Null <: DoubleLinkedList[A, This]]
var prev: This
override def append(that: This): Unit =
- if (that == null)
+ if (that eq null)
()
- else if (next == null) {
+ else if (next eq null) {
next = that
that.prev = this
} else
next.append(that)
- override def insert(that: This): Unit = if (that != null) {
+ override def insert(that: This): Unit = if (that ne null) {
that.append(next)
next = that
that.prev = this
}
def remove: Unit = {
- if (next != null)
+ if (next ne null)
next.prev = prev
- if (prev != null)
+ if (prev ne null)
prev.next = next
prev = null
next = null