Adjust testData to CharSequence.length transformation
This commit is contained in:
committed by
Mikhail Glukhikh
parent
cb562e7ea5
commit
f0e3fd617d
+2
-2
@@ -20,11 +20,11 @@ fun foo() {
|
||||
}
|
||||
|
||||
fun unnecessarySafeCall(x: String) {
|
||||
x?.length()
|
||||
x?.length
|
||||
}
|
||||
|
||||
fun unnecessaryExclExcl(x: String) {
|
||||
x!!.length()
|
||||
x!!.length
|
||||
}
|
||||
|
||||
fun unnecessaryCast(x: String) = x as String
|
||||
|
||||
+2
-2
@@ -19,11 +19,11 @@ fun foo() {
|
||||
}
|
||||
|
||||
fun unnecessarySafeCall(x: String) {
|
||||
x.length()
|
||||
x.length
|
||||
}
|
||||
|
||||
fun unnecessaryExclExcl(x: String) {
|
||||
x.length()
|
||||
x.length
|
||||
}
|
||||
|
||||
fun unnecessaryCast(x: String) = x
|
||||
|
||||
Reference in New Issue
Block a user