Rename copyToArray() to toTypedArray().

This commit is contained in:
Ilya Gorbunov
2015-04-20 20:17:49 +03:00
parent 5eb3c0bb5e
commit be11394adf
9 changed files with 17 additions and 11 deletions
@@ -196,7 +196,7 @@ public open class Kotlin2JsCompile() : AbstractKotlinCompile<K2JSCompilerArgumen
}
public fun addLibraryFiles(vararg fs: File) {
val strs = fs.map { it.getPath() }.copyToArray()
val strs = fs.map { it.getPath() }.toTypedArray()
addLibraryFiles(*strs)
}
@@ -477,8 +477,8 @@ private class SubpluginEnvironment(
}
val extraProperties = compileTask.getExtensions().getExtraProperties()
extraProperties.set("compilerPluginClasspaths", realPluginClasspaths.copyToArray())
extraProperties.set("compilerPluginArguments", pluginArguments.copyToArray())
extraProperties.set("compilerPluginClasspaths", realPluginClasspaths.toTypedArray())
extraProperties.set("compilerPluginArguments", pluginArguments.toTypedArray())
}
}
@@ -488,7 +488,7 @@ open class GradleUtils(val scriptHandler: ScriptHandler, val project: ProjectInt
val configurationsContainer: ConfigurationContainer = scriptHandler.getConfigurations()
val deps = coordinates map { dependencyHandler.create(it) }
val configuration = configurationsContainer.detachedConfiguration(*deps.copyToArray())
val configuration = configurationsContainer.detachedConfiguration(*deps.toTypedArray())
return configuration.getResolvedConfiguration().getFiles { true }
}