This commit is contained in:
Alexey Kudravtsev
2016-08-15 16:55:00 +03:00
parent 890bed7288
commit 4cae65e3f0
@@ -1,14 +1,18 @@
<html>
<body>
This inspection reports <b>multi-catch</b> sections, like <code>catch&nbsp;(IOException|RuntimeException&nbsp;e)&nbsp;{...}</code>
This inspection reports <b>multi-catch</b> sections, like <code>try{} catch&nbsp;(IOException|RuntimeException&nbsp;e)&nbsp;{...}</code>
<p> The quick fix splits multi-catch section into separate <b>catch</b> blocks.
<!-- tooltip end -->
<p>For example, the multi-catch section
<pre><code>catch (IOException|RuntimeException e) {
<pre><code>
try{}
catch (IOException|RuntimeException e) {
/*handle the exception*/
}</code></pre>
is transformed into the following:
<pre><code>catch (IOException e) {
<pre><code>
try{}
catch (IOException e) {
/*handle the exception*/
}
catch (RuntimeException e) {