Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Automated detection of condition expressions whose second and third operands are of different types is straightforward.

Bibliography

[Bloch 20052005a]

Puzzle 8, "Dos Equis"

[Findbugs 2008]

"Bx: Primitive Value Is Unboxed and Coerced for Ternary Operator"

[JLS 2011]

§15.25, "Conditional Operator ? :"

...