We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8fe21b commit 15e1801Copy full SHA for 15e1801
java/ql/src/Likely Bugs/Concurrency/DoubleCheckedLockingShared.qhelp
@@ -68,8 +68,8 @@ variable can be used to avoid reading the field more times than neccessary.
68
69
<p>
70
As a final note, it is possible to use double-checked locking correctly without
71
-<code>volatile</code> if the object you construct is immutable. That is, the
72
-object declares all fields as <code>final</code>, and the double-checked field
+<code>volatile</code> if the object you construct is immutable (that is, the
+object declares all fields as <code>final</code>), and the double-checked field
73
is read exactly once outside the synchronized block.
74
</p>
75
0 commit comments