I think it would be useful if the kotlin converter...
# android
t
I think it would be useful if the kotlin converter replaces 「if(!TextUtils.isEmpty(s))」 with 「 if(s?.isNotEmpty()==true)」. (also inverted conditions are 「if(TextUtils.isEmpty(s))」 with 「if( s?.isEmpty()!=false) 」.) Because the latter performs a null check and safe cast.
👍 1
a
+1 to that idea - I just manually changed this on a project recently. You should create a feature request (if you can't find one already) - https://youtrack.jetbrains.com/issues/KT
t
seems there is no similar issues, I've post https://youtrack.jetbrains.com/issue/KT-22216
🎉 3