Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: reomved int overflow "brevity" text

...

Prefer using block synchronization instead of method synchronization when the method contains non-atomic operations that either do not require any synchronization or can use a more fine-grained locking scheme involving multiple internal private lock objects. Non-atomic operations can be decoupled from those that require synchronization and executed outside the synchronized block. The guideline CON04-J. Synchronize using an a private final lock object has more details on using private internal lock objects and block synchronization.

...