Cleanup deprecated symbol usages in testData

This commit is contained in:
Ilya Gorbunov
2016-01-16 20:10:40 +03:00
parent eefbd72a64
commit 25c4453dc5
403 changed files with 933 additions and 921 deletions
@@ -7,8 +7,8 @@
package foo
fun firstNotNullLen(s1 : String?, s2 : String?, s3 : String?) : Int {
val len = (s1?.length() ?: s2?.length()) ?:
(s2?.length() ?: s3?.length()) ?:
val len = (s1?.length ?: s2?.length) ?:
(s2?.length ?: s3?.length) ?:
return 0
return len
}
@@ -8,11 +8,11 @@ package foo
fun stringLen(s : String?) : Int {
val s1 : String = s ?: return 0
return s1.length()
return s1.length
}
fun stringReturnInLeftLen(s : String?) : Int {
val s1 = (if (s != null) { return s.length() } else { null }) ?: return 0
val s1 = (if (s != null) { return s.length } else { null }) ?: return 0
}
fun box(): String {