Versions Compared

Key

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

...

According to the Java Language Specification, §4.3.2, "The Class Object" [JLS 2005]:

A class method that is declared synchronized synchronizes on the lock associated with the Class object of the class.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

LCK02-J

medium

probable

medium

P8

L2

Bibliography

[API 2006]

 

[Findbugs 2008]

 

[Pugh 2008]

Synchronization

[Miller 2009]

Locking

...

Rule 09: Locking (LCK)      Rule 09: Locking (LCK)Image Added      Image Added