Accepted answer

You can set the compiler to generate errors or warnings (your choice) for any usage of deprecated API.

Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API section.

Then, each use of a deprecated method or API will show up as an error/warning in the Problems view.


You can always use the grep facilities under 'Search -> File'. Eclipse can do a recursive search for @deprecated after you check on the 'consider derived resources' option box.


[Updating eight years later, for current versions of Eclipse, with screenshots.]

First, build your projects. Once you've built your projects, the Problems view includes deprecations by default. You can group all the deprecations together.

To show the Problems view, use Window>Show View>Problems.

If deprecations don't appear after the next step, you can configure them in Preferences under Java>Compiler>Errors/Warnings.

Group deprecations together using the Problem view menu. Start by clicking the control circled below.

Menu to gruop by Java problem type

Once you've done that, open the "Deprecation" subtree. For example:

enter image description here

Related Query

More Query from same tag