Fix deprecations in testData: BlackBoxWithStdLibCodegenTest

This commit is contained in:
Ilya Gorbunov
2015-09-15 18:28:32 +03:00
parent 74e1dbff76
commit 9c974b6c5c
36 changed files with 109 additions and 109 deletions
@@ -1,7 +1,7 @@
import java.util.Arrays
fun box(): String {
val array = Arrays.asList(2, 3, 9).copyToArray()
val array = Arrays.asList(2, 3, 9).toTypedArray()
if (array !is Array<Int>) return array.javaClass.toString()
val str = Arrays.toString(array)
@@ -6,7 +6,7 @@ fun box(): String {
list.add(Pair("Sample", "http://cyber.law.harvard.edu/rss/examples/rss2sample.xml"))
list.add(Pair("Scripting", "http://static.scripting.com/rss.xml"))
val keys = list.map { it.first }.copyToArray<String>()
val keys = list.map { it.first }.toTypedArray<String>()
val keysToString = Arrays.toString(keys)
if (keysToString != "[Sample, Scripting]") return keysToString
@@ -1,6 +1,6 @@
import java.util.Arrays
fun getCopyToArray(): Array<Int> = Arrays.asList(2, 3, 9).copyToArray()
fun getCopyToArray(): Array<Int> = Arrays.asList(2, 3, 9).toTypedArray()
fun box(): String {
val str = Arrays.toString(getCopyToArray())