Files
openide/java/java-impl/resources/inspectionDescriptions/PublicMethodWithoutLogging.html
2025-02-05 04:43:28 +00:00

23 lines
673 B
HTML

<html>
<body>
Reports any public methods that do not contain a logging statement. This inspection does not report
simple getters and setters.
<p>For example:</p>
<pre><code>
<b>public class</b> Crucial {
<b>private static final </b>Logger LOG = LoggerFactory.getLogger(Crucial.class);
<b>public void</b> doImportantStuff() {
// warning on this method
}
<b>public void</b> doOtherStuff() {
LOG.info("do other stuff");
}
}
</code></pre>
<!-- tooltip end -->
<p>
Use the table below to specify Logger class names.
Public methods that do not use instance methods of the specified classes will be reported by this inspection.
</body>
</html>