I was wondering if there is any tool or script for renaming all variables and method/function names in a piece of code (id specially be interested in one for java code, but recommendation for other languages are welcome).
I basically do not like to post my code in the web (stack overflow, forums, etc) with the original variable/method names (maybe I am too paranoid =D) and I would like to avoid to change them manually and possibly have some inconsistencies.
So I would be interested in something that does the whole re-factoring in a batch (all variables and all function names) and that I can apply just to a piece of code (I do not want/need to apply to the whole file)
I looked a bit around for it but could not find any (maybe I've been using the wrong keywords)