J2K: coversion of specially mapped built-in methods + replacing "get" with "[]" where possible
This commit is contained in:
@@ -4,6 +4,6 @@ internal class C {
|
||||
}
|
||||
|
||||
fun foo(): Int {
|
||||
return getString(true)!!.length()
|
||||
return getString(true)!!.length
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fun foo(s: String?, b: Boolean): Int {
|
||||
if (s == null) println("null")
|
||||
if (b) return s!!.length()
|
||||
if (b) return s!!.length
|
||||
return 10
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
internal class A {
|
||||
fun foo(s: String?): Int {
|
||||
if (s != null) {
|
||||
return s.length()
|
||||
return s.length
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user