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 {
228
228
case xs : Array [Object ] => xs
229
229
case xs => xs.map(_.asInstanceOf [Object ])
230
230
}
231
- runtime.Tuples .fromArray(xs2). asInstanceOf [ Tuple ]
231
+ runtime.Tuples .fromArray(xs2)
232
232
}
233
233
234
234
/** Convert an immutable array into a tuple of unknown arity and types */
235
235
def fromIArray [T ](xs : IArray [T ]): Tuple = {
236
236
val xs2 : IArray [Object ] = xs match {
237
237
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 ])
241
240
}
242
- runtime.Tuples .fromIArray(xs2). asInstanceOf [ Tuple ]
241
+ runtime.Tuples .fromIArray(xs2)
243
242
}
244
243
245
244
/** Convert a Product into a tuple of unknown arity and types */
You can’t perform that action at this time.
0 commit comments