我正在使用org.eclipse.jdt.core.IMethod并在接口上调用method.rename(newName, true, new NullProgressMonitor());。 它重构了接口方法,但未能重构其实现类方法。 例如: interface Animal {
void eat(); // refactors here
}
class Dog impleme
说我有一些类Foo class Foo {
protected String x = "x";
public String getX() {
return x;
}
}
我有一个使用Foo和违反毁灭之王 class Bar {
protected Foo foo;
public Bar() {
this.foo =
此问题是后续for this。 假设我有一些Foo类。 class Foo {
protected String x = "x";
public String getX() {
return x;
}
}
我有一个使用Foo和违反毁灭之王(Law of Demeter)的程序。 class Bar {
protected Foo foo;