Compiler&plugin deprecations cleanup: *array -> *arrayOf, copyToArray -> toTypedArray.
Original commit: 2c31a1a345
This commit is contained in:
@@ -248,7 +248,7 @@ public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR
|
|||||||
|
|
||||||
val representativeTarget = chunk.representativeTarget()
|
val representativeTarget = chunk.representativeTarget()
|
||||||
|
|
||||||
fun concatenate(strings: Array<String>?, cp: List<String>) = arrayOf(*(strings ?: arrayOf<String>()), *cp.toTypedArray())
|
fun concatenate(strings: Array<String>?, cp: List<String>) = arrayOf(*(strings ?: emptyArray()), *cp.toTypedArray())
|
||||||
|
|
||||||
for (argumentProvider in ServiceLoader.load(javaClass<KotlinJpsCompilerArgumentsProvider>())) {
|
for (argumentProvider in ServiceLoader.load(javaClass<KotlinJpsCompilerArgumentsProvider>())) {
|
||||||
// appending to pluginOptions
|
// appending to pluginOptions
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ public abstract class AbstractIncrementalJpsTest : JpsBuildTestCase() {
|
|||||||
val jdk = addJdk("my jdk")
|
val jdk = addJdk("my jdk")
|
||||||
val moduleDependencies = readModuleDependencies()
|
val moduleDependencies = readModuleDependencies()
|
||||||
if (moduleDependencies == null) {
|
if (moduleDependencies == null) {
|
||||||
addModule("module", array(getAbsolutePath("src")), null, null, jdk)
|
addModule("module", arrayOf(getAbsolutePath("src")), null, null, jdk)
|
||||||
|
|
||||||
FileUtil.copyDir(testDataDir, File(workDir, "src"), { it.getName().endsWith(".kt") || it.getName().endsWith(".java") })
|
FileUtil.copyDir(testDataDir, File(workDir, "src"), { it.getName().endsWith(".kt") || it.getName().endsWith(".java") })
|
||||||
|
|
||||||
@@ -356,7 +356,7 @@ public abstract class AbstractIncrementalJpsTest : JpsBuildTestCase() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
val nameToModule = moduleDependencies.keySet()
|
val nameToModule = moduleDependencies.keySet()
|
||||||
.keysToMap { addModule(it, array(getAbsolutePath(it + "/src")), null, null, jdk)!! }
|
.keysToMap { addModule(it, arrayOf(getAbsolutePath(it + "/src")), null, null, jdk)!! }
|
||||||
|
|
||||||
for ((moduleName, dependencies) in moduleDependencies) {
|
for ((moduleName, dependencies) in moduleDependencies) {
|
||||||
val module = nameToModule[moduleName]!!
|
val module = nameToModule[moduleName]!!
|
||||||
|
|||||||
Reference in New Issue
Block a user