From a0b13bedd5182d5fa5c3f8fac326e8f758326e4c Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Mon, 19 Aug 2013 14:37:17 +0200 Subject: [PATCH] add "new in 13" and some missing info to description --- .../src/inspectionDescriptions/BooleanParameter.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/BooleanParameter.html b/plugins/InspectionGadgets/src/inspectionDescriptions/BooleanParameter.html index bb138c1a4ca8..5653cdab465c 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/BooleanParameter.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/BooleanParameter.html @@ -1,10 +1,14 @@ -It's almost always a mistake to add a boolean parameter to a public method (part of an API). When reading code using such a method -it can be difficult to decipher what the boolean stands for without looking at the source or documentation. This is also known as -the boolean trap. The boolean parameter can often -be profitably replaced with an enum +It's almost always a mistake to add a boolean parameter to a public method (part of an API) if that method is not a setter. +When reading code using such a method, it can be difficult to decipher what the boolean stands for without looking at +the source or documentation. +This problem is also known as the boolean trap. +The boolean parameter can often be profitably replaced with an enum +

Use the option below to only warn when a method contains more than one boolean parameter. +

+New in 13 \ No newline at end of file