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

21 lines
657 B
HTML

<html>
<body>
<p>Reports unused classes, methods and fields.</p>
<p><b>Example:</b></p>
<pre><code>
public class Department {
private Organization myOrganization;
}
</code></pre>
<p>Here <code>Department</code> explicitly references <code>Organization</code> but if <code>Department</code> class itself is unused,
then inspection would report both classes.
<p>
The inspection also reports parameters, which are not used by their methods and all method implementations/overriders, as well as local
variables, which are declared but not used.
</p>
<!-- tooltip end -->
<p>For more information, see the same inspection in Java.</p>
</body>
</html>