Use the @Synchronized annotation instead of synchronized. Makes my ability to manage thread-safety on the shared objects much easier. Because I don't have to think about what I should guard and what I shouldn't.
Use the @Synchronized annotation instead of synchronized. Makes my ability to manage thread-safety on the shared objects much easier. Because I don't have to think about what I should guard and what I shouldn't.