J2K: coversion of specially mapped built-in methods + replacing "get" with "[]" where possible
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
fun foo(o: Any) {
|
||||
if (o is String) {
|
||||
val l = o.length()
|
||||
val l = o.length
|
||||
}
|
||||
somethingElse()
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
fun foo(o: Any) {
|
||||
if (o !is String) return
|
||||
val l = o.length()
|
||||
val l = o.length
|
||||
somethingElse(o as String/* we should not remove this cast because it's not in pasted range*/)
|
||||
}
|
||||
Reference in New Issue
Block a user