Rule that checks for ternary expressions with a constant value for the boolean expression, such as:
true ? x : y
false ? x : y
Boolean.TRUE ? x : y
Boolean.FALSE ? x : y
null ? x : y
0 ? x : y
99.7 ? x : y
"" ? x : y
"abc" ? x : y
[:] ? x : y
[a:123, b:456] ? x : y
[a, b, c] ? x : y
true ?: y
null ?: y
99.7 ?: y
"abc" ?: y
[a:123] ?: y
Type | Name and description |
---|---|
Class |
astVisitorClass |
String |
name |
int |
priority |