diff options
author | michelou <michelou@epfl.ch> | 2007-09-04 13:57:20 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-09-04 13:57:20 +0000 |
commit | c8740e98dc2b128f15c2ab30ae79c947e2eaefb4 (patch) | |
tree | 7cc21d8e23a3fb821f4bcb0ded5fb5ee864bd8e2 /src/library | |
parent | 10bec64595b4c1d43af0612537f7bbd3e01b29ee (diff) | |
download | scala-c8740e98dc2b128f15c2ab30ae79c947e2eaefb4.tar.gz scala-c8740e98dc2b128f15c2ab30ae79c947e2eaefb4.tar.bz2 scala-c8740e98dc2b128f15c2ab30ae79c947e2eaefb4.zip |
removed unchecked warning
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/Set.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/Set.scala b/src/library/scala/collection/Set.scala index 44dd8d3b3a..f14ad566b0 100644 --- a/src/library/scala/collection/Set.scala +++ b/src/library/scala/collection/Set.scala @@ -104,7 +104,7 @@ trait Set[A] extends (A => Boolean) with Collection[A] { * contain the same elements. */ override def equals(that: Any): Boolean = that match { - case other: Set[A] => + case other: Set[_] => this.size == other.size && subsetOf(other.asInstanceOf[Set[A]]) case _ => false |