diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-18 09:57:03 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-18 09:57:03 -0700 |
commit | c9b2ef64108d75ab41ff95cc32bc503e77653e66 (patch) | |
tree | 8c20c020da84210aa3fdb09c7ab97bc6d2d4c6a4 /src/library/scala/collection/mutable/HashSet.scala | |
parent | a9f95dc29f366d935604f15a4a99cbfd1a1bd275 (diff) | |
parent | dbd641f592310d7243f675e27ecc8b9d47684309 (diff) | |
download | scala-c9b2ef64108d75ab41ff95cc32bc503e77653e66.tar.gz scala-c9b2ef64108d75ab41ff95cc32bc503e77653e66.tar.bz2 scala-c9b2ef64108d75ab41ff95cc32bc503e77653e66.zip |
Merge pull request #1298 from pavelpavlov/SI-5767
SI-5767 fix + protecting public FlatHashMap API
Diffstat (limited to 'src/library/scala/collection/mutable/HashSet.scala')
-rw-r--r-- | src/library/scala/collection/mutable/HashSet.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/scala/collection/mutable/HashSet.scala b/src/library/scala/collection/mutable/HashSet.scala index b263b46d36..a5b636c83d 100644 --- a/src/library/scala/collection/mutable/HashSet.scala +++ b/src/library/scala/collection/mutable/HashSet.scala @@ -53,7 +53,7 @@ extends AbstractSet[A] override def companion: GenericCompanion[HashSet] = HashSet - override def size = tableSize + override def size: Int = tableSize def contains(elem: A): Boolean = containsEntry(elem) @@ -67,7 +67,9 @@ extends AbstractSet[A] override def remove(elem: A): Boolean = removeEntry(elem).isDefined - override def clear() = clearTable() + override def clear() { clearTable() } + + override def iterator: Iterator[A] = super[FlatHashTable].iterator override def foreach[U](f: A => U) { var i = 0 |