diff --git a/plugins/InspectionGadgets/src/inspectionDescriptions/SynchronizeOnNonFinalField.html b/plugins/InspectionGadgets/src/inspectionDescriptions/SynchronizeOnNonFinalField.html index 2ae175cb3d5a..1dd5d0e1d6b9 100644 --- a/plugins/InspectionGadgets/src/inspectionDescriptions/SynchronizeOnNonFinalField.html +++ b/plugins/InspectionGadgets/src/inspectionDescriptions/SynchronizeOnNonFinalField.html @@ -1,10 +1,16 @@ -Reports synchronized statements where the lock expression +Reports the synchronized statements where the lock expression is a reference to a non-final field. Such statements are unlikely to have useful semantics, as different threads may be locking on different objects even when operating on the same object. -

- +

Example:

+
+  private Object o;
+    public void foo() {
+        synchronized (o) // synchronization on a non-final field
+        { }
+    }
+
\ No newline at end of file