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

21 lines
511 B
HTML

<html>
<body>
Reports pointless arithmetic expressions.
<p>
Such expressions include adding or subtracting zero, multiplying by zero or one,
division by one, and shift by zero. 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>
a + 0
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
a
</code></pre>
</body>
</html>