Skip to content

Commit

Permalink
rollback the change, the initial sentence was correct
Browse files Browse the repository at this point in the history
  • Loading branch information
gavvvr authored Dec 15, 2022
1 parent 4a4acb9 commit fab6d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/java-concurrency-in-practice/chapter-16/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ This can be fixed by making the variable `volatile`, which doesn't incur very la
However, the necessity for this technique has long passed and it shouldn't be used in modern codebases.

## Initialization safety
The final fields of a **properly constructed** object will be observed in an inconsistent state even if an object is not safely published.
The final fields of a **properly constructed** object will not be observed in an inconsistent state even if an object is not safely published.
This extends to all fields reachable from a final field.

This means that if an object has only final fields and is not safely published, the only possible problem is observing a not initialized reference to the object.
Expand Down

0 comments on commit fab6d9d

Please sign in to comment.