mardi 15 décembre 2015

Finding usages of Java Reflection in a codebase

I'd like to avoid using Reflection where possible. I have a legacy codebase to refactor that has at least one getMethod(), and now I'm afraid to delete functions that seem to be dead.

How can I easily find places in the code where I can work backwards from? Is there a static analyser that can collect Reflection API usage?

Searching for every variant of getClass() and getMethod() seems tedious.





Aucun commentaire:

Enregistrer un commentaire