Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider Java v3.0

...

Using lazy initialization in a Singleton without synchronizing the getInstance() method may lead to multiple instances and can thus as a result violate the expected contract.

...