Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Don't think we need 'volatile' here.

...

The @Immutable annotation is applied to immutable classes. Immutable objects are inherently thread-safe; after once they are fully constructed, they may be published via a volatile reference and shared safely among multiple threads.

...