We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7416e commit 5416735Copy full SHA for 5416735
library/src/scala/collection/mutable/ArraySeq.scala
@@ -120,7 +120,7 @@ object ArraySeq extends StrictOptimizedClassTagSeqFactory[ArraySeq] { self =>
120
* `ArraySeq.make(a.asInstanceOf[Array[Int]])` does not work, it throws a `ClassCastException`
121
* at runtime.
122
*/
123
- def make[T](x: Array[T]): ArraySeq[T] = ((x.asInstanceOf[Array[_]]: @unchecked) match {
+ def make[T](x: Array[T]): ArraySeq[T] = ((x: @unchecked) match {
124
case null => null
125
case x: Array[AnyRef] => new ofRef[AnyRef](x)
126
case x: Array[Int] => new ofInt(x)
0 commit comments