Renaming a lot of variables in many Java classes at once

前端 未结 6 1095
清酒与你
清酒与你 2021-01-04 01:51

I work in a pretty large Java-project (2500+ classes) that uses an old code standard where all member variables are prefixed with \"m_\" (e.g m_temperature). There is reall

6条回答
  •  抹茶落季
    2021-01-04 02:08

    Refactoring tool will help in this case. When you rename a variable, it will rename it in all dependent places including if it is called in different class file. While doing this, it will alert you in case if your renamed variable matches with already existing name.

    However we have to do it manually for each variable.

提交回复
热议问题