summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/BufferProxy.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-07-20 22:35:38 +0000
committerPaul Phillips <paulp@improving.org>2009-07-20 22:35:38 +0000
commita91a8b2ac22d49b1690482fbf1271d203ebb457b (patch)
tree4ca1ad265b2850dc4c3ad308e3e1c233af4ba94d /src/library/scala/collection/mutable/BufferProxy.scala
parent04ed00053ec03848f3409e090d818418c19a8541 (diff)
downloadscala-a91a8b2ac22d49b1690482fbf1271d203ebb457b.tar.gz
scala-a91a8b2ac22d49b1690482fbf1271d203ebb457b.tar.bz2
scala-a91a8b2ac22d49b1690482fbf1271d203ebb457b.zip
The creation of scala.collection.mutable.Iterab...
The creation of scala.collection.mutable.Iterable in 2.8 means that all the other classes in scala.collection.mutable are impacted - what they once thought was scala.Iterable is now mutable Iterable. This meant such things as Stack ++= List(1,2,3) would no longer compile. This patch qualifies the relevant Iterables as collection.Iterables, though based on inspecting other classes, it's likely they should actually be Traversables.
Diffstat (limited to 'src/library/scala/collection/mutable/BufferProxy.scala')
-rw-r--r--src/library/scala/collection/mutable/BufferProxy.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/library/scala/collection/mutable/BufferProxy.scala b/src/library/scala/collection/mutable/BufferProxy.scala
index b45e151da9..ad8ac0970f 100644
--- a/src/library/scala/collection/mutable/BufferProxy.scala
+++ b/src/library/scala/collection/mutable/BufferProxy.scala
@@ -54,14 +54,14 @@ trait BufferProxy[A] extends Buffer[A] with Proxy {
* @param iter the iterable object.
* @return the updated buffer.
*/
- override def ++(iter: Iterable[A]): Buffer[A] = self.++(iter)
+ override def ++(iter: collection.Iterable[A]): Buffer[A] = self.++(iter)
/** Appends a number of elements provided by an iterable object
* via its <code>iterator</code> method.
*
* @param iter the iterable object.
*/
- override def ++=(iter: Iterable[A]): this.type = { self.++=(iter); this }
+ override def ++=(iter: collection.Iterable[A]): this.type = { self.++=(iter); this }
/** Appends a sequence of elements to this buffer.
*
@@ -74,7 +74,7 @@ trait BufferProxy[A] extends Buffer[A] with Proxy {
*
* @param iter the iterable object.
*/
- override def appendAll(iter: Iterable[A]): Unit = self.appendAll(iter)
+ override def appendAll(iter: collection.Iterable[A]): Unit = self.appendAll(iter)
/** Prepend a single element to this buffer and return
* the identity of the buffer.
@@ -89,7 +89,7 @@ trait BufferProxy[A] extends Buffer[A] with Proxy {
*
* @param iter the iterable object.
*/
- override def ++:(iter: Iterable[A]): Buffer[A] = self.++:(iter)
+ override def ++:(iter: collection.Iterable[A]): Buffer[A] = self.++:(iter)
/** Prepend an element to this list.
*
@@ -103,7 +103,7 @@ trait BufferProxy[A] extends Buffer[A] with Proxy {
*
* @param iter the iterable object.
*/
- override def prependAll(elems: Iterable[A]): Unit = self.prependAll(elems)
+ override def prependAll(elems: collection.Iterable[A]): Unit = self.prependAll(elems)
/** Inserts new elements at the index <code>n</code>. Opposed to method
* <code>update</code>, this method will not replace an element with a
@@ -121,7 +121,7 @@ trait BufferProxy[A] extends Buffer[A] with Proxy {
* @param n the index where a new element will be inserted.
* @param iter the iterable object providing all elements to insert.
*/
- def insertAll(n: Int, iter: Iterable[A]): Unit = self.insertAll(n, iter)
+ def insertAll(n: Int, iter: collection.Iterable[A]): Unit = self.insertAll(n, iter)
/** Replace element at index <code>n</code> with the new element
* <code>newelem</code>.