Versions Compared

Key

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

...

Explicitly define the name of the class (superclass here) in the synchronization block. This can be achieved in two ways. Onw One way is to explicitly pass the superclass's instance.Class.forName().

Code Block
bgColor#ccccff
synchronized(SuperclassName.class) { ... }

...