Back to Intellij Community

GroovyDoubleNegation

plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyDoubleNegation.html

2025.3-rc-2231 B
Original Source

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) {}