mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 21:55:38 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
19 lines
666 B
HTML
19 lines
666 B
HTML
<html>
|
|
<body>
|
|
Reports instantiations of <code>Throwable</code> or its subclasses, where the created <code>Throwable</code>
|
|
is never actually thrown.
|
|
Additionally, this inspection reports method calls that return instances of <code>Throwable</code> or its subclasses,
|
|
when the result of the method call is not thrown.
|
|
<p>Calls to methods annotated with the Error Prone's or AssertJ's <code>@CanIgnoreReturnValue</code> annotation will not be reported.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
void check(String s) {
|
|
if (s == null) {
|
|
new NullPointerException("s");
|
|
}
|
|
// ...
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |