From bd52cc368e88af4376b99e227887582cd64cc7f1 Mon Sep 17 00:00:00 2001 From: Aleksandar Pokopec Date: Thu, 2 Sep 2010 15:11:57 +0000 Subject: Makes utility methods in the ArrayStack compani... Makes utility methods in the ArrayStack companion object private. No review. --- src/library/scala/collection/mutable/ArrayStack.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/scala/collection/mutable/ArrayStack.scala b/src/library/scala/collection/mutable/ArrayStack.scala index 9992e49583..4cf6b78de3 100644 --- a/src/library/scala/collection/mutable/ArrayStack.scala +++ b/src/library/scala/collection/mutable/ArrayStack.scala @@ -30,13 +30,13 @@ object ArrayStack extends SeqFactory[ArrayStack] { new ArrayStack[A](els, els.length) } - def growArray(x: Array[AnyRef]) = { + private[mutable] def growArray(x: Array[AnyRef]) = { val y = new Array[AnyRef](x.length * 2) Array.copy(x, 0, y, 0, x.length) y } - def clone(x: Array[AnyRef]) = { + private[mutable] def clone(x: Array[AnyRef]) = { val y = new Array[AnyRef](x.length) Array.copy(x, 0, y, 0, x.length) y -- cgit v1.2.3