summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-06-23 14:39:57 +0000
committermihaylov <mihaylov@epfl.ch>2004-06-23 14:39:57 +0000
commitfee5e824a97dfcd285901550a979c1360eca962b (patch)
treec318a5104dafabc1e3d1dd9752ee4e7a7d1b5248
parent93944e71f3ee23720f6ab6eb0062f1efb6a2227a (diff)
downloadscala-fee5e824a97dfcd285901550a979c1360eca962b.tar.gz
scala-fee5e824a97dfcd285901550a979c1360eca962b.tar.bz2
scala-fee5e824a97dfcd285901550a979c1360eca962b.zip
- Use AnyRef instead of Object
-rw-r--r--sources/scala/collection/immutable/Map.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/collection/immutable/Map.scala b/sources/scala/collection/immutable/Map.scala
index c6639fb49a..37abe9f7ef 100644
--- a/sources/scala/collection/immutable/Map.scala
+++ b/sources/scala/collection/immutable/Map.scala
@@ -129,7 +129,7 @@ trait Map[A, B] with scala.collection.Map[A, B] {
} + "}";
override def hashCode() = {
- elements.foldLeft(0)((hash:Int,pair:Object) => hash + pair.hashCode());
+ elements.foldLeft(0)((hash:Int,pair:AnyRef) => hash + pair.hashCode());
}
/** This method controls how a mapping is represented in the string