Community
Participate
Working Groups
Build: I20050209 Mark Occurrences is a great tool for getting a high level view of various aspects of a compilation unit (field accesses, methods implementing interface, etc). One scenario where I frequently want such a high level view is when reviewing thread safety of a class. I would like to be able to select an occurrence of the "synchronized" keyword, and see all occurrences of the keyword in that file. Ideally, I would like to be able to see only the synchronizations on the same object, although this is not always possible (when synchronizing on the return value of a method call, for example). However, the most common cases are synchronization on "this", and synchronization on fields in the current class, both of which should be straight-forward to detect.