summaryrefslogtreecommitdiff
path: root/src/library/scala/Enumeration.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-21 17:07:50 +0000
committerPaul Phillips <paulp@improving.org>2010-05-21 17:07:50 +0000
commit712ebe2943640b34ff40b40a363bd72594e62cb5 (patch)
tree33e109835d03eb5710efcec14c0cb14aec79bf8e /src/library/scala/Enumeration.scala
parent4382c7dd6e1b079919587639b6979ad55a783db5 (diff)
downloadscala-712ebe2943640b34ff40b40a363bd72594e62cb5.tar.gz
scala-712ebe2943640b34ff40b40a363bd72594e62cb5.tar.bz2
scala-712ebe2943640b34ff40b40a363bd72594e62cb5.zip
Altered a bunch of places which call hashCode t...
Altered a bunch of places which call hashCode to call ## instead. No review.
Diffstat (limited to 'src/library/scala/Enumeration.scala')
-rw-r--r--src/library/scala/Enumeration.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Enumeration.scala b/src/library/scala/Enumeration.scala
index ab944b20a8..5d1a0997ed 100644
--- a/src/library/scala/Enumeration.scala
+++ b/src/library/scala/Enumeration.scala
@@ -230,7 +230,7 @@ abstract class Enumeration(initial: Int, names: String*) { thisenum =>
case that: thisenum.Value => compare(that) == 0
case _ => false
}
- override def hashCode: Int = id.hashCode
+ override def hashCode: Int = id.##
/** this enumeration value as an <code>Int</code> bit mask.
* @throws IllegalArgumentException if <code>id</code> is greater than 31