-
Notifications
You must be signed in to change notification settings - Fork 515
Open
Labels
Description
Select the "methodToBeMoved" in class SourceClass, and move to class TargetClass
Before refactoring
class TargetClass {
}
class SubClass extends TargetClass {
static public void methodToBeMoved() {
}
}
class SourceClass {
TargetClass t;
void methodToBeMoved() {
}
}class TargetClass {
void methodToBeMoved() {
}
}
class SubClass extends TargetClass {
static public void methodToBeMoved() {
}
}
class SourceClass {
TargetClass t;
}Error: This static method cannot hide the instance method from TargetClass