I want to remove the intermediate dependency of class B by moving the code from B to C and inherit directly from A.
generic class A
|
---modified generic class B
|
---current class C
Is there any refactoring from Eclipse to support this?
Use Refactoring > Pull up on all the methods of
C.Move all fields and constructors from
CtoB. Make sure C and B are in the same package.Delete the class
C.Rename class
BtoC.You have to move fields and constructors by hand, but otherwise this should be a fairly safe and painless refactoring.