Versions Compared

Key

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

...

By applying a static modifier to the getInstance()method which returns the Singleton, allows the method to be accessed subsequently without creating a new object.

Risk Assessment

To guarantee the liveness Using lazy initialization of a system, the method notifyAll() should be called rather than notify().Singleton without synchronizing the getInstance()method may lead in multiple instances. 

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

CON32 CON33-J

low

unlikely

medium

P2

L3

Automated Detection

...