类似于“将长度和宽度以参数的形式传递给面积和周长,而非在构造函数里指定”这样的错误,可以通过重构来修正。
Mistakes, like passing the length and width as parameters to Area and Perimeter rather than to the constructor, are corrected by refactoring.
这个重构过程有很多形式,本利说。
Infer Generic Type Arguments 重构会自动地为原始形式的那些类推测恰当的泛型类型(generic type)。
The Infer Generic Type Arguments refactoring automatically tries to guess the appropriate generic types for classes used in their raw form.
应用推荐