There is any reason for which a delete method/field/function refactoring doesn't exist?
Posted
by
raisercostin
on Programmers
See other posts from Programmers
or by raisercostin
Published on 2013-10-26T13:45:50Z
Indexed on
2013/10/26
16:07 UTC
Read the original article
Hit count: 332
An operation in an interface is obsolete so I decided to delete it. It seems that there is no automatic support for such a "refactoring".
For me is a refactoring operation since the behavior of the code will be preserved since nobody(tests, client apis) will notice that the operation was removed.
In eclipse, in java code, on an method in an interface I have the following options: rename, move, change method signature, inline, extract interface, extract superclass, use supertype when possible, pull up, push down, introduce parameter objet, introduce indirection, generate declared type.
There is any reason for which a delete method/field/function refactoring doesn't exist?
© Programmers or respective owner