"Useless call on collection type" inspection: Apply to 'kotlin.sequences.orEmpty'
This commit is contained in:
committed by
Ilya Gorbunov
parent
c4b785de36
commit
6a140fb9ed
+1
@@ -31,6 +31,7 @@ import org.jetbrains.kotlin.types.TypeUtils
|
||||
|
||||
class UselessCallOnNotNullInspection : AbstractUselessCallInspection() {
|
||||
override val uselessFqNames = mapOf("kotlin.collections.orEmpty" to deleteConversion,
|
||||
"kotlin.sequences.orEmpty" to deleteConversion,
|
||||
"kotlin.text.orEmpty" to deleteConversion,
|
||||
"kotlin.text.isNullOrEmpty" to Conversion("isEmpty"),
|
||||
"kotlin.text.isNullOrBlank" to Conversion("isBlank"))
|
||||
|
||||
Reference in New Issue
Block a user