Java: Fix qhelp.

This commit is contained in:
Anders Schack-Mulligen
2019-01-18 11:47:43 +01:00
parent d8fe21be7e
commit 15e18013c8

View File

@@ -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>