automated-refactoring

Java source refactoring of 7000 references

拈花ヽ惹草 提交于 2019-11-28 23:15:16
问题 I need to change the signature of a method used all over the codebase. Specifically, the method void log(String) will take two additional arguments ( Class c, String methodName ), which need to be provided by the caller, depending on the method where it is called. I can't simply pass null or similar. To give an idea of the scope, Eclipse found 7000 references to that method, so if I change it the whole project will go down. It will take weeks for me to fix it manually. As far as I can tell

Are there any open source command line tools to refactor java code? [closed]

倾然丶 夕夏残阳落幕 提交于 2019-11-28 21:25:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I use vim as my editor but I would like to get some of the same power of the IDE's for java when it comes to refactoring. Are there any commandline tools for refactoring java? I could probably hack something together using perl or vim scripting but if there is something already out there I'd rather use that. 回答1