Add intention to replace '!isNotEmpty()' to 'isEmpty()'

#KT-30123 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-27 13:22:57 +09:00
committed by Dmitry Gridin
parent 88ee0bf6af
commit 6b35c06d50
8 changed files with 92 additions and 41 deletions
@@ -0,0 +1,6 @@
// PROBLEM: Replace negated 'isEmpty' with 'isNotEmpty'
// FIX: Replace negated 'isEmpty' with 'isNotEmpty'
// WITH_RUNTIME
fun test(s: String) {
val b = !s.isEmpty<caret>()
}