Files
openide/java/java-impl/resources/inspectionDescriptions/EmptyMethod.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

16 lines
898 B
HTML

<html>
<body>
Reports empty methods that can be removed.
<p>Methods are considered empty if they are empty themselves and if they are overridden or
implemented by empty methods only. Note that methods containing only comments and the <code>super()</code> call with own parameters are
also considered empty.</p>
<p>The inspection ignores methods with special annotations, for example, the <code>javax.ejb.Init</code> and <code>javax.ejb.Remove</code> EJB annotations .</p>
<p>The quick-fix safely removes unnecessary methods.</p>
<!-- tooltip end -->
<p>Configure the inspection:</p>
<ul>
<li>Use the <b>Comments and javadoc count as content</b> option to select whether methods with comments should be treated as non-empty.</li>
<li>Use the <b>Additional special annotations</b> option to configure additional annotations that should be ignored by this inspection.</li>
</ul>
</body>
</html>