Skip to content

Commit 15e1801

Browse files
committed
Java: Fix qhelp.
1 parent d8fe21b commit 15e1801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/Likely Bugs/Concurrency/DoubleCheckedLockingShared.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ variable can be used to avoid reading the field more times than neccessary.
6868

6969
<p>
7070
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
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
7373
is read exactly once outside the synchronized block.
7474
</p>
7575
<p>

0 commit comments

Comments
 (0)