Add <compilerarg value="-Xlint:deprecation"/> to macros.xml. Do a clean, then a build. See the warnings.
This task should be an umbrella over any possible sub-tasks, as people find and discover these issues, and come up with fixes.
There are no Sub-Tasks for this issue.