mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Java: Fix qhelp.
This commit is contained in:
@@ -68,8 +68,8 @@ variable can be used to avoid reading the field more times than neccessary.
|
||||
|
||||
<p>
|
||||
As a final note, it is possible to use double-checked locking correctly without
|
||||
<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
|
||||
<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
|
||||
is read exactly once outside the synchronized block.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user