...
Automated detection of condition expressions whose second and third operands are of different types is straightforward.
Bibliography
Puzzle 8, "Dos Equis" | |
"Bx: Primitive Value Is Unboxed and Coerced for Ternary Operator" | |
[JLS 2011] | §15.25, "Conditional Operator ? : " |
...