Versions Compared

Key

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

...

Due to the complicated nature of the rules used to determine the result type of a conditional expression and the potential for unintended type casting, it is recommended that the second and third operands of the conditional expression should always explicitly have the same type. This also applies to boxed primitives.

Noncompliant Code Example

...