Use the same implementation in Array.toArrayList as in arrayListOf.
This commit is contained in:
@@ -5160,7 +5160,7 @@ public fun Array<out Short>.toShortArray(): ShortArray {
|
||||
* Returns an [ArrayList] of all elements.
|
||||
*/
|
||||
public fun <T> Array<out T>.toArrayList(): ArrayList<T> {
|
||||
return this.asList().toArrayList()
|
||||
return ArrayList(this.asCollection())
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user