Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Compliant Solution (immutable member accessed using synchronization)

If the Helper class is immutable, it cannot be changed after it is initialized and will always be properly constructed. However, this does not prevent a thread from accessing the helper field of class Foo before the Helper instance is assigned.

...