Java inspection: Renamed the inspection "Split Multi-Catch into Separate Catch Blocks" to a noun-based name - documentation improved. (IDEA-157727)

This commit is contained in:
Pavel Dolgov
2016-08-11 20:15:06 +03:00
parent 8cf829b5a9
commit 3714171e2f
@@ -1,7 +1,18 @@
<html>
<body>
This inspection reports <b>multi-catch</b> sections.
This inspection reports <b>multi-catch</b> sections, like <code>catch&nbsp;(IOException|RuntimeException&nbsp;e)&nbsp;{...}</code>
<p> The quick fix splits multi-catch section into separate <b>catch</b> blocks.
<br><br>
<!-- tooltip end -->
<p>For example, the multi-catch section
<pre><code>catch (IOException|RuntimeException e) {
/*handle the exception*/
}</code></pre>
is transformed into the following:
<pre><code>catch (IOException e) {
/*handle the exception*/
}
catch (RuntimeException e) {
/*handle the exception*/
}</code></pre>
</body>
</html>