File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -346,14 +346,13 @@ object IArray:
346346 mapNull(arr, ArraySeq .unsafeWrapArray(arr))
347347
348348 /** Conversion from IArray to immutable.ArraySeq */
349- import scala .language .unsafeNulls // TODO!!! only for stdlib migration!
350349 implicit def wrapRefArray [T <: AnyRef | Null ](arr : IArray [T ]): ArraySeq .ofRef[T ] =
351350 // Since the JVM thinks arrays are covariant, one 0-length Array[AnyRef | Null]
352351 // is as good as another for all T <: AnyRef | Null. Instead of creating 100,000,000
353352 // unique ones by way of this implicit, let's share one.
354353 mapNull(arr,
355354 if (arr.length == 0 ) ArraySeq .empty[AnyRef | Null ].asInstanceOf [ArraySeq .ofRef[T ]]
356- else ArraySeq .ofRef[ AnyRef ] (arr.asInstanceOf [Array [AnyRef ]]). asInstanceOf [ ArraySeq .ofRef[ T ]]
355+ else ArraySeq .ofRef(arr.asInstanceOf [Array [T ]])
357356 )
358357
359358 /** Conversion from IArray to immutable.ArraySeq */
You can’t perform that action at this time.
0 commit comments