mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
This commit adds KotlinHLNullableBooleanElvisInspection class that detects elvis operations with a nullable boolean and a constant boolean value e.g., "a ?: false" and replaces them with the ones with equality checks e.g., "a == true". GitOrigin-RevId: b0a3b9f86a3a21040c53010d51b5bdae6b3c2cb5
4 lines
63 B
Plaintext
4 lines
63 B
Plaintext
fun foo() {
|
|
var b: Boolean? = null
|
|
val x = b == false
|
|
} |