diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/EqualityOperatorComparesObjects.html b/plugins/InspectionGadgets/src/inspectionDescriptions/EqualityOperatorComparesObjects.html index 5263c25e35ac..0f0cf5b98103 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/EqualityOperatorComparesObjects.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/EqualityOperatorComparesObjects.html @@ -1,7 +1,17 @@
This inspection reports == and != equality operators that compare two objects. -The quick fix offers to replace the equality operators with calls of the .equals() method
- or with the safe .equals() method construct.
+For example:
if (object1 == object2) {}
+
Quick fix replaces '==' with .equals(): +
object1.equals(object2);
+
or with safe .equals(): +
java.util.Objects.equals(object1, object2)object1 == null ? object2 == null : object1.equals(object1)