From 3714171e2fad6514a26139eff33870fb992badaa Mon Sep 17 00:00:00 2001 From: Pavel Dolgov Date: Thu, 11 Aug 2016 20:14:30 +0300 Subject: [PATCH] Java inspection: Renamed the inspection "Split Multi-Catch into Separate Catch Blocks" to a noun-based name - documentation improved. (IDEA-157727) --- .../MultiCatchCanBeSplit.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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, like 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) {
+  /*handle the exception*/
+}
+is transformed into the following: +
catch (IOException e) {
+  /*handle the exception*/
+}
+catch (RuntimeException e) {
+  /*handle the exception*/
+}