summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/ArrayBuffer.scala
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-09-10 16:13:51 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-09-14 09:53:02 -0400
commitf3fd018f145ffc02de03744259ba585d8152483f (patch)
tree6d7f80d910542cb50daceb1e3b52ea3145409d3d /src/library/scala/collection/mutable/ArrayBuffer.scala
parent76d4e9a8071f9e102106696664376b7f70622582 (diff)
downloadscala-f3fd018f145ffc02de03744259ba585d8152483f.tar.gz
scala-f3fd018f145ffc02de03744259ba585d8152483f.tar.bz2
scala-f3fd018f145ffc02de03744259ba585d8152483f.zip
Fix SI-4813 - Clone doesn't work on LinkedList.
* Added extensive test for clone across all standard mutable collections * Fixed clone implementations when needed so they work.
Diffstat (limited to 'src/library/scala/collection/mutable/ArrayBuffer.scala')
-rw-r--r--src/library/scala/collection/mutable/ArrayBuffer.scala6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/library/scala/collection/mutable/ArrayBuffer.scala b/src/library/scala/collection/mutable/ArrayBuffer.scala
index 3034fc2bce..d5308c3b1a 100644
--- a/src/library/scala/collection/mutable/ArrayBuffer.scala
+++ b/src/library/scala/collection/mutable/ArrayBuffer.scala
@@ -169,12 +169,6 @@ class ArrayBuffer[A](override protected val initialSize: Int)
result
}
- /** Return a clone of this buffer.
- *
- * @return an `ArrayBuffer` with the same elements.
- */
- override def clone(): ArrayBuffer[A] = new ArrayBuffer[A] ++= this
-
def result: ArrayBuffer[A] = this
/** Defines the prefix of the string representation.