Replace deprecated join with joinToString
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ public object RawTypeCapabilities : TypeCapabilities {
|
||||
|
||||
if (!upperArgs.isNotEmpty()) return null
|
||||
|
||||
val newArgs = lowerArgs.map { "(raw) $it" }.join(", ")
|
||||
val newArgs = lowerArgs.map { "(raw) $it" }.joinToString(", ")
|
||||
val newUpper =
|
||||
if (lowerArgs.zip(upperArgs).all { onlyOutDiffers(it.first, it.second) })
|
||||
upperRendered.replaceArgs(newArgs)
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
package org.jetbrains.kotlin.utils
|
||||
|
||||
// Needed for Java interop: otherwise you need to specify all the optional parameters to join, i.e. prefix, postfix, limit, truncated
|
||||
fun Iterable<Any>.join(separator: String) = joinToString(separator)
|
||||
fun join(collection: Iterable<Any>, separator: String) = collection.joinToString(separator)
|
||||
|
||||
Reference in New Issue
Block a user