Adjust testData to CharSequence.length transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cb562e7ea5
commit
f0e3fd617d
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user