Adjust testData to CharSequence.length transformation

This commit is contained in:
Denis Zharkov
2015-10-12 20:29:01 +03:00
committed by Mikhail Glukhikh
parent cb562e7ea5
commit f0e3fd617d
348 changed files with 524 additions and 540 deletions
@@ -1,7 +1,7 @@
// "Remove cast" "true"
fun test(x: Any): Int {
if (x is String) {
return (x <caret>as String).length()
return (x <caret>as String).length
}
return -1
}
@@ -1,7 +1,7 @@
// "Remove cast" "true"
fun test(x: Any): Int {
if (x is String) {
return x.length()
return x.length
}
return -1
}
@@ -1,4 +1,4 @@
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : String) : Int {
return value<caret>!!.length()
return value<caret>!!.length
}
@@ -1,4 +1,4 @@
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : String) : Int {
return value<caret>.length()
return value<caret>.length
}