From b85bbabbd4c044a95346af50157c0445c2905d69 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Fri, 9 Nov 2018 14:50:58 +0700 Subject: [PATCH] StringEqualsEmptyString: changes according to review IDEA-CR-39275 (+comma after "For safety") --- .../src/inspectionDescriptions/StringEqualsEmptyString.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/StringEqualsEmptyString.html b/plugins/InspectionGadgets/src/inspectionDescriptions/StringEqualsEmptyString.html index 279b636a6baf..04f6dc64211e 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/StringEqualsEmptyString.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/StringEqualsEmptyString.html @@ -4,9 +4,8 @@ Reports cases when .equals() is called to compare a String with an empty it shows you exactly what you're checking.

- Some checks, for example, the "".equals(str) check, return false when str is null. It means that an explicit null-check - could be inserted when you are replacing .equals() with isEmpty(). Use a checkbox below to suppress the warning when a - string value could be nullable. + "".equals(str) returns false when str is null. For safety, this inspection's quick fix inserts an explicit null-check when + the equals() argument is nullable. Use the checkbox below to suppress the warning in this case.

\ No newline at end of file