Compiler&plugin deprecations cleanup: length, size, indices, tail and other collection operations.

This commit is contained in:
Ilya Gorbunov
2015-06-25 18:49:25 +03:00
parent f3a19ebe11
commit 32144257ec
23 changed files with 46 additions and 45 deletions
@@ -66,10 +66,10 @@ public fun String.trimIndent(): String {
else {
if (!line.startsWith(trimmedPrefix)) {
throw IllegalArgumentException(
"""Invalid line "$line", ${trimmedPrefix.size} whitespace character are expected""")
"""Invalid line "$line", ${trimmedPrefix.length()} whitespace character are expected""")
}
line.substring(trimmedPrefix.length)
line.substring(trimmedPrefix.length())
}
}.joinToString(separator = "\n")
}