Files
openide/java/java-impl/resources/inspectionDescriptions/PublicMethodWithoutLogging.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
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>