Java source refactoring of 7000 references

前端 未结 12 1087
醉梦人生
醉梦人生 2020-12-25 13:05

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 (

12条回答
  •  被撕碎了的回忆
    2020-12-25 13:17

    Eclipse is able to do that using Refactor -> Change Method signature and provide default values for the new parameters.

    For the class parameter the defaultValue should be this.getClass() but you are right in your comment I don't know how to do for the method name parameter.

提交回复
热议问题