Deprecate join (use joinToString instead)

#KT-6909
This commit is contained in:
Ilya Gorbunov
2015-10-07 03:53:10 +03:00
parent f37e022b8e
commit 12d9beb3a4
12 changed files with 20 additions and 17 deletions
@@ -278,7 +278,7 @@ public open class Kotlin2JsCompile() : AbstractKotlinCompile<K2JSCompilerArgumen
}
}
getLogger().debug("${getName()} set libraryFiles to ${args.libraryFiles.join(",")}")
getLogger().debug("${getName()} set libraryFiles to ${args.libraryFiles.joinToString(",")}")
getLogger().debug("${getName()} set outputFile to ${args.outputFile}")
}
@@ -139,7 +139,7 @@ abstract class BaseGradleIT {
listOf("/bin/bash", "./gradlew") + tailParameters
}
private fun String.normalize() = this.lineSequence().join(SYSTEM_LINE_SEPARATOR)
private fun String.normalize() = this.lineSequence().joinToString(SYSTEM_LINE_SEPARATOR)
private fun isWindows(): Boolean {
return System.getProperty("os.name")!!.contains("Windows")
@@ -78,7 +78,7 @@ public class SeleniumQUnit(val driver: WebDriver) {
for (message in failMessages)
println("FAILED: $message")
fail(failMessages.join("\n"))
fail(failMessages.joinToString("\n"))
}
}
@@ -384,7 +384,7 @@ class GenericFunction(val signature: String, val keyword: String = "fun") {
val types = effectiveTypeParams()
if (!types.isEmpty()) {
builder.append(types.join(separator = ", ", prefix = "<", postfix = "> ").renderType())
builder.append(types.joinToString(separator = ", ", prefix = "<", postfix = "> ").renderType())
}
val receiverType = (if (toNullableT) receiver.replace("T>", "T?>") else receiver).renderType()