mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
15 lines
615 B
HTML
15 lines
615 B
HTML
<html>
|
|
<body>
|
|
<p>Reports the cases where a variable is redundant as its value is never used after its assignment.</p>
|
|
<p>If the variable is unused, we recommend removing it to shorten the code and to avoid redundant allocations.</p>
|
|
<p>The following cases are reported:</p>
|
|
<ul>
|
|
<li>the variable never gets read after assignment</li>
|
|
<li>the value is always overwritten with another assignment before the next variable read</li>
|
|
<li>the variable initializer is redundant (for one of the above two reasons)</li>
|
|
</ul>
|
|
<!-- tooltip end -->
|
|
<p> For more info see the same inspection in Java.</p>
|
|
</body>
|
|
</html>
|