From 1071d0ca86e21028efc1d51447935573b9f8490a Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 3 Dec 2013 13:39:14 +0100 Subject: SI-7373 Make the constructor of Vector non-public The danger of: new Vector(1, 2, 3).toString java.lang.NullPointerException and the "should have been private all along" argument call for a break in the source compatibility policy here. --- src/library/scala/collection/immutable/Vector.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/scala/collection/immutable/Vector.scala b/src/library/scala/collection/immutable/Vector.scala index 0a100578c0..b689bfdfd5 100644 --- a/src/library/scala/collection/immutable/Vector.scala +++ b/src/library/scala/collection/immutable/Vector.scala @@ -59,7 +59,7 @@ object Vector extends IndexedSeqFactory[Vector] { * @define mayNotTerminateInf * @define willNotTerminateInf */ -final class Vector[+A](private[collection] val startIndex: Int, private[collection] val endIndex: Int, focus: Int) +final class Vector[+A] private[immutable] (private[collection] val startIndex: Int, private[collection] val endIndex: Int, focus: Int) extends AbstractSeq[A] with IndexedSeq[A] with GenericTraversableTemplate[A, Vector] -- cgit v1.2.3