From 5f2e44f8b125bd8e95dcdef27dd5fa6f37c0b24c Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Thu, 3 Oct 2019 12:09:05 +0700 Subject: [PATCH] CatchMayIgnoreException.html: information about how to update template GitOrigin-RevId: 7b24d37fe7c2fc1bfe4ed31b05aaa00e912bd6d5 --- .../src/inspectionDescriptions/CatchMayIgnoreException.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/CatchMayIgnoreException.html b/plugins/InspectionGadgets/src/inspectionDescriptions/CatchMayIgnoreException.html index c41617bd1985..d4031f4cd38f 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/CatchMayIgnoreException.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/CatchMayIgnoreException.html @@ -9,6 +9,11 @@ that catch block may silently ignore important VM exceptions like NullPointer This inspection will not report any catch parameters named "ignore" or "ignored". Conversely this inspection will warn on any catch parameters named "ignore" or "ignored" that are actually used. Also catch parameters named "expected" or "ok" are not reported inside test sources. +

+

+ For empty catch blocks an additional fix to generate the catch body is suggested. + You can modify the "Catch Statement Body" template in + Settings | Editor | File and Code Templates (see the "Code" tab).

New in 2018.1