diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-27 05:41:47 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-27 05:41:47 +0000 |
commit | 0c8e2195960d47e5b9be93efb7c95802ae40dca6 (patch) | |
tree | 4546dbdde688402560032002b62fbea9d84b1343 /src/library/scala/collection/mutable/SynchronizedSet.scala | |
parent | ec127ce60de679809a75c3c85f25ec4256b9dd13 (diff) | |
download | scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.tar.gz scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.tar.bz2 scala-0c8e2195960d47e5b9be93efb7c95802ae40dca6.zip |
TraversableOnce. Review by odersky.
Diffstat (limited to 'src/library/scala/collection/mutable/SynchronizedSet.scala')
-rw-r--r-- | src/library/scala/collection/mutable/SynchronizedSet.scala | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/library/scala/collection/mutable/SynchronizedSet.scala b/src/library/scala/collection/mutable/SynchronizedSet.scala index 0f129ad2cc..d3023b9136 100644 --- a/src/library/scala/collection/mutable/SynchronizedSet.scala +++ b/src/library/scala/collection/mutable/SynchronizedSet.scala @@ -39,24 +39,16 @@ trait SynchronizedSet[A] extends Set[A] { super.+=(elem) } - override def ++=(that: Traversable[A]): this.type = synchronized[this.type] { - super.++=(that) - } - - override def ++=(it: Iterator[A]): this.type = synchronized[this.type] { - super.++=(it) + override def ++=(xs: TraversableOnce[A]): this.type = synchronized[this.type] { + super.++=(xs) } abstract override def -=(elem: A): this.type = synchronized[this.type] { super.-=(elem) } - override def --=(that: Traversable[A]): this.type = synchronized[this.type] { - super.--=(that) - } - - override def --=(it: Iterator[A]): this.type = synchronized[this.type] { - super.--=(it) + override def --=(xs: TraversableOnce[A]): this.type = synchronized[this.type] { + super.--=(xs) } override def update(elem: A, included: Boolean): Unit = synchronized { |