diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html b/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html index 9df4e7869c05..79db054c69d6 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/MultiCatchCanBeSplit.html @@ -1,7 +1,18 @@
-This inspection reports multi-catch sections. +This inspection reports multi-catch sections, likecatch (IOException|RuntimeException e) {...}
The quick fix splits multi-catch section into separate catch blocks.
-
+
+
For example, the multi-catch section +
catch (IOException|RuntimeException e) {
+ /*handle the exception*/
+}
+is transformed into the following:
+catch (IOException e) {
+ /*handle the exception*/
+}
+catch (RuntimeException e) {
+ /*handle the exception*/
+}