Refactoring methods between classes



  • Hey, ho ...

    As I've mentioned elsewhere, I'm in the process of refactoring a pretty large Java code base which has grown rather organically for > 5 years.

    I've found where folks haven't properly separated stuff (like SQL strings, connections, business processes, etc., being defined in GUI classes) into appropriate classes and I've been tasked with flattening this thing into layers.

    What I'm looking for is an easy way to move the offending methods into appropriate classes. However, NetBeans doesn't seem to allow this operation on methods, only allowing classes to be moved amongst packages.

    Is there an easier way to do this other than cutting code from one class and pasting into the appropriate class, then manually fixing up code which references the moved method?

    Thanks for any tips!

    - Z -


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.