我使用“引入参数”重构了我的方法,因为它接受了很多变量。但现在所有的调用者都有内联的 cosntructor 作为
this.somemethod(new MyParam("a", "b","c","d");
我想通过用 setter 替换构造函数来重构它
MyParam myParam= new MyParam();
myParam.setA("a");........
.
.
this.somemethod(myParam);
有没有办法做到这一点?
在 Eclipse https://bugs.eclipse.org/bugs/show_bug.cgi?id=105324上报告了一个类似的错误