File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -228,18 +228,17 @@ object Tuple {
228228 case xs : Array [Object ] => xs
229229 case xs => xs.map(_.asInstanceOf [Object ])
230230 }
231- runtime.Tuples .fromArray(xs2). asInstanceOf [ Tuple ]
231+ runtime.Tuples .fromArray(xs2)
232232 }
233233
234234 /** Convert an immutable array into a tuple of unknown arity and types */
235235 def fromIArray [T ](xs : IArray [T ]): Tuple = {
236236 val xs2 : IArray [Object ] = xs match {
237237 case xs : IArray [Object ] @ unchecked => xs
238- case xs =>
239- // TODO support IArray.map
240- xs.asInstanceOf [Array [T ]].map(_.asInstanceOf [Object ]).asInstanceOf [IArray [Object ]]
238+ case _ =>
239+ xs.map(_.asInstanceOf [Object ])
241240 }
242- runtime.Tuples .fromIArray(xs2). asInstanceOf [ Tuple ]
241+ runtime.Tuples .fromIArray(xs2)
243242 }
244243
245244 /** Convert a Product into a tuple of unknown arity and types */
You can’t perform that action at this time.
0 commit comments