Files
openide/plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyUnusedAssignment.html
Ekaterina Alekseeva 9ee21affe9 [groovy] inspections proofread
GitOrigin-RevId: 61ae000bb2ddc52998d7c1e5220c04a9e6090076
2021-06-24 15:04:44 +00:00

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>