Back to Intellij Community

Description

plugins/groovy/groovy-psi/resources/intentionDescriptions/SimplifyTernaryOperatorIntention/description.html

2025.3-rc-2187 B
Original Source

Simplifies a conditional operator ?: when one of the branches is a constant true or false.

So a ? b : false gets turned into a && b and a ? true : b gets turned into a || b .