From 4cae65e3f0dd0558e93dda4baeda9deed87a20ef Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 12 Aug 2016 14:29:42 +0300 Subject: [PATCH] doc --- .../inspectionDescriptions/MultiCatchCanBeSplit.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html b/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html index 79db054c69d6..097f7920ca6d 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html @@ -1,14 +1,18 @@ -This inspection reports multi-catch sections, like catch (IOException|RuntimeException e) {...} +This inspection reports multi-catch sections, like try{} catch (IOException|RuntimeException e) {...}

The quick fix splits multi-catch section into separate catch blocks.

For example, the multi-catch section -

catch (IOException|RuntimeException e) {
+

+try{}
+catch (IOException|RuntimeException e) {
   /*handle the exception*/
 }
is transformed into the following: -
catch (IOException e) {
+

+try{}
+catch (IOException e) {
   /*handle the exception*/
 }
 catch (RuntimeException e) {