Versions Compared

Key

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

...

This idiom can also be suitably used by classes designed for inheritance. If a superclass thread requests a lock on the class object's monitor, a subclass thread can interfere with its operation. Refer to the guideline CON36CON01-J. Always synchronize on the appropriate object for more details.

...

For more details on using the private Object lock refer to CON36CON01-J. Always synchronize on the appropriate object.

...