报告应该使用相等检查而不是 elvis 运算符的情况。

示例:


fun check(a: Boolean? == null) {
    if (a ?: false) throw IllegalStateException()
}

在应用快速修复后:


fun check(a: Boolean? == null) {
    if (a == true) throw IllegalStateException()
}