summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/HashSet.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-09-18 09:57:03 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-09-18 09:57:03 -0700
commitc9b2ef64108d75ab41ff95cc32bc503e77653e66 (patch)
tree8c20c020da84210aa3fdb09c7ab97bc6d2d4c6a4 /src/library/scala/collection/mutable/HashSet.scala
parenta9f95dc29f366d935604f15a4a99cbfd1a1bd275 (diff)
parentdbd641f592310d7243f675e27ecc8b9d47684309 (diff)
downloadscala-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.scala6
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