Any java static/dynamic code analyze tool to find all recursive method in my java project
I need to find all recursive methods in my projects (100+ eclipse java/plugin projects with about ~1 millions lines of code) since we found some performance problems caused by recursive methods. We don't care about the used libraries.
I would prefer open source/free and with eclipse plug-ins. Static code analyzer would be even better.
Findbug or google's codepro seems开发者_JAVA百科 don't have such function. Also check style, PMD, etc...
Any one know such tool, or give some hint to write such a feature?
You're barking up the wrong tree here.
It is fallacious to conclude from 'some' performance problems that are due to a recursion that all recursions are causing all your performance problems.
You must already have a way of looking for performance problems. So look for performance problems, not recursive methods. If the performance problem is due to a recursive method, fix that. If it is due to something else, fix that. That way you have fixed everything you need to fix and nothing you don't need to fix.
精彩评论