Files
openide/plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyPointlessBoolean.html
Konstantin Nisht 73a842644a [groovy] Re-proofread inspection messages
GitOrigin-RevId: d946743c6f9ea2a1cb44f5676f4098d9e56e4d49
2021-06-02 15:13:27 +00:00

23 lines
606 B
HTML

<html>
<body>
Reports pointless or pointlessly complicated boolean expressions.
<p>
Such expressions include conjunction with true,
disjunction with false,
equality comparison with a boolean literal, or negation of a boolean literal. Such expressions may be
the result of automated refactorings
not completely followed through to completion, and in any case are unlikely to be what the developer
intended to do.
</p>
<p><b>Example:</b></p>
<pre><code>
if (someBool && true) {}
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
if (someBool) {}
</code></pre>
</body>
</html>