mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
21 lines
511 B
HTML
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>
|