summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/OpenHashMap.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/collection/mutable/OpenHashMap.scala')
-rw-r--r--src/library/scala/collection/mutable/OpenHashMap.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library/scala/collection/mutable/OpenHashMap.scala b/src/library/scala/collection/mutable/OpenHashMap.scala
index a9bd0b0b1c..87e5c061fa 100644
--- a/src/library/scala/collection/mutable/OpenHashMap.scala
+++ b/src/library/scala/collection/mutable/OpenHashMap.scala
@@ -48,7 +48,8 @@ object OpenHashMap {
* @define willNotTerminateInf
*/
class OpenHashMap[Key, Value](initialSize : Int)
-extends Map[Key, Value]
+extends AbstractMap[Key, Value]
+ with Map[Key, Value]
with MapLike[Key, Value, OpenHashMap[Key, Value]] {
import OpenHashMap.OpenEntry
@@ -175,7 +176,7 @@ extends Map[Key, Value]
*
* @return the iterator
*/
- def iterator = new Iterator[(Key, Value)]{
+ def iterator: Iterator[(Key, Value)] = new AbstractIterator[(Key, Value)] {
var index = 0
val initialModCount = modCount