diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-12-03 13:39:14 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-12-03 13:39:14 +0100 |
commit | 1071d0ca86e21028efc1d51447935573b9f8490a (patch) | |
tree | 7572de861af143ce7a25752248bee756846d85c1 /src | |
parent | 6c63ab153651f7946ece5740d52e0f2b701e349d (diff) | |
download | scala-1071d0ca86e21028efc1d51447935573b9f8490a.tar.gz scala-1071d0ca86e21028efc1d51447935573b9f8490a.tar.bz2 scala-1071d0ca86e21028efc1d51447935573b9f8490a.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/immutable/Vector.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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] |