Remove overload of joinToString with 5 parameters and it's usage from java code.
This commit is contained in:
@@ -463,7 +463,7 @@ public class ErrorUtils {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return constructor.toString() + (arguments.isEmpty() ? "" : joinToString(arguments, ", ", "<", ">", -1, "..."));
|
||||
return constructor.toString() + (arguments.isEmpty() ? "" : joinToString(arguments, ", ", "<", ">", -1, "...", null));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -338,7 +338,6 @@ public fun ShortArray.joinToString(separator: String = ", ", prefix: String = ""
|
||||
* If the collection could be huge, you can specify a non-negative value of [limit], in which case only the first [limit]
|
||||
* elements will be appended, followed by the [truncated] string (which defaults to "...").
|
||||
*/
|
||||
kotlin.jvm.overloads
|
||||
public fun <T> Iterable<T>.joinToString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "...", transform: ((T) -> String)? = null): String {
|
||||
return joinTo(StringBuilder(), separator, prefix, postfix, limit, truncated, transform).toString()
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ fun strings(): List<GenericFunction> {
|
||||
|
||||
exclude(Strings)
|
||||
returns("String")
|
||||
annotations("kotlin.jvm.overloads", Iterables)
|
||||
body {
|
||||
"""
|
||||
return joinTo(StringBuilder(), separator, prefix, postfix, limit, truncated, transform).toString()
|
||||
|
||||
Reference in New Issue
Block a user