From 284788dbe1ca5b9889230a1e1614b231f5bd25e1 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Fri, 2 Oct 2009 16:27:51 +0000 Subject: Fixed issue #2427: ListBuffer.update wrongly ch... Fixed issue #2427: ListBuffer.update wrongly changes list size --- src/library/scala/collection/mutable/ListBuffer.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/library/scala/collection/mutable/ListBuffer.scala b/src/library/scala/collection/mutable/ListBuffer.scala index de7bd72c7d..7d40719b02 100644 --- a/src/library/scala/collection/mutable/ListBuffer.scala +++ b/src/library/scala/collection/mutable/ListBuffer.scala @@ -62,7 +62,6 @@ final class ListBuffer[A] val newElem = new :: (x, start.tail); if (last0 eq start) { last0 = newElem - len += 1 } start = newElem } else { @@ -75,7 +74,6 @@ final class ListBuffer[A] val newElem = new :: (x, cursor.tail.tail) if (last0 eq cursor.tail) { last0 = newElem - len += 1 } cursor.asInstanceOf[::[A]].tl = newElem } -- cgit v1.2.3