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
@@ -10,8 +10,8 @@ fun <T : String?> T.foo() {
if (this != null) {
if (<!SENSELESS_COMPARISON!>this != null<!>) {}
length()
this<!UNNECESSARY_SAFE_CALL!>?.<!>length()
length
this<!UNNECESSARY_SAFE_CALL!>?.<!>length
bar1()
bar2()
@@ -22,11 +22,11 @@ fun <T : String?> T.foo() {
this<!UNNECESSARY_SAFE_CALL!>?.<!>bar1()
}
<!UNSAFE_CALL!>length<!>()
<!UNSAFE_CALL!>length<!>
if (this is String) {
length()
this<!UNNECESSARY_SAFE_CALL!>?.<!>length()
length
this<!UNNECESSARY_SAFE_CALL!>?.<!>length
bar1()
bar2()