Compiler&plugin deprecations cleanup: *array -> *arrayOf, copyToArray -> toTypedArray.

This commit is contained in:
Ilya Gorbunov
2015-06-25 17:35:40 +03:00
parent 00a44f6d4f
commit 2c31a1a345
50 changed files with 82 additions and 82 deletions
@@ -79,7 +79,7 @@ public abstract class AbstractJvmRuntimeDescriptorLoaderTest : TestCaseWithTmpdi
compileFile(file, text, jdkKind)
val classLoader = URLClassLoader(array(tmpdir.toURI().toURL()), ForTestCompileRuntime.runtimeJarClassLoader())
val classLoader = URLClassLoader(arrayOf(tmpdir.toURI().toURL()), ForTestCompileRuntime.runtimeJarClassLoader())
val actual = createReflectedPackageView(classLoader)
@@ -40,7 +40,7 @@ public abstract class AbstractLocalClassProtoTest : TestCaseWithTmpdir() {
val classNameSuffix = InTextDirectivesUtils.findStringWithPrefixes(source.readText(), "// CLASS_NAME_SUFFIX: ")
?: error("CLASS_NAME_SUFFIX directive not found in test data")
val classLoader = URLClassLoader(array(tmpdir.toURI().toURL()), ForTestCompileRuntime.runtimeJarClassLoader())
val classLoader = URLClassLoader(arrayOf(tmpdir.toURI().toURL()), ForTestCompileRuntime.runtimeJarClassLoader())
val classFile = tmpdir.listFiles().singleOrNull { it.getPath().endsWith("$classNameSuffix.class") }
?: error("Local class with suffix `$classNameSuffix` is not found in: ${tmpdir.listFiles().toList()}")