Versions Compared

Key

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

...

Compliant Solution (explicit static lazy initialization)

This compliant solution explicitly incorporates lazy initialization which makes it more productive. It also uses a static variable as suggested in the previous compliant solution. The variable is declared within a static inner, Holder class.

...