Cover is an Eclipse plugin that helps developers to find over-exposed methods and classes in Java applications. An over-exposed method/class is a method/class that is defined with a visibility that is broader than necessary.For example, a typical situation is when a method is declared as public whereas it may simply be protected or private.
The plugin has been tested in Eclipse Juno and Kepler.
To start analyzing exhibitionist methods for a project, right click on the project and from the popup menu select "Add Cover". Now that you've enabled a project, you need to go to the preferences of Eclipse and click in the "Over-exposed methods" and "Over-exposed class" detectors under "Cover Preferences".
Now, the easiest way to calculate all its over-exposed methods and classes is to do a full rebuild of the project. The "Building workspace" progress bar will indicate the progress of the methods and classes calculations as they are being performed in the background. When it's all done, the Cover view will look something like this:
After clicking in a listed method/class the plugin opens the source code with an indication of the most appropriate accessibility for it.
If you need to recompute the over-exposed methods/classes, you just need to click in the "Over-exposed methods" and "Over-exposed classes" detectors under "Cover Preferences" and rebuild the project.