Need to generate html report on deprecated api
How do I write a generic tool that can print a report in html format of all the deprecated methods of a class and their count. Are there any freely downloadble tools that does this. What is the best way to do this if I have to write on my own.
Thanks & Regards,
1) Get hold of the source code for x-doclet tags and tinker around with them so that you can find all the deprecated tags in your system.
2) Write some code yourself that picks up all your files and searches for instance of the deprecated tag
3) Use javadoc to generate javadoc. Parse the output HTML using DOM/SAX parsers to find deprecated methods
Unfortunately, a class file never knows that a method is deprecated - so you cant use reflection to find deprecated methods (nor can you use BECL)