Double negation
Reports double negation that can be simplified.
Example:
if (!!functionCall()) {} // double negation
if (!(a != b)) {} // double negation
After the quick-fix is applied:
if (functionCall()) {}
if (a == b) {}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
GroovyDoubleNegation
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Groovy, 243.23126 |