Negated boolean expression can be simplified

Last modified: 03 December 2024

Reports negated boolean expressions that can be simplified.

The quick-fix simplifies the boolean expression.

Example:

After the quick-fix is applied:

Please note that this action may change code semantics if IEEE-754 NaN values are involved:

After the quick-fix is applied: