mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
26 lines
690 B
HTML
26 lines
690 B
HTML
<html>
|
|
<body>
|
|
Reports empty <code>finally</code> blocks.
|
|
<p>Empty <code>finally</code> blocks usually indicate coding errors. They may also remain after code refactoring and can safely be removed.</p>
|
|
<p>This inspection doesn't report empty <code>finally</code> blocks found in JSP files.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
try {
|
|
Files.readString(Paths.get("in.txt"));
|
|
} catch (IOException e) {
|
|
throw new RuntimeException(e);
|
|
} finally {
|
|
|
|
}
|
|
</code></pre>
|
|
<p>After the quick-fix is applied:
|
|
<pre><code>
|
|
try {
|
|
Files.readString(Paths.get("in.txt"));
|
|
} catch (IOException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |