Hi,
What is the easiest way to extract common members from two classes into new superclass?
For example, I wont turn:
class A {
pirvate String fieldName;
private String someOtherA;
//getters/setters here
}
class B {
private String fieldName;
private String someOtherB;
//getters/setters here
}
into:
class Basic {
private String fieldName;
//getters/setters here
}
class A extends Basic {
private String someOtherA;
//getters/setters here
}
class B extends Basic{
private String someOtherB;
//getters/setters here
}
?
I tried to select both A and B in project tree and then Refactor->Generify, Generify Obejcts, but it doesn't see any common fields.
Best regards, Eugene.