multi refactor from HashMap to Map?

hi..

upon reviwing legacy code, i've stumbled upon a case where variable types are being used as HashMaps and not maps, i was told it would take an entire day to change HashMaps to maps as they are used for method signatures as well , for all the variables, is there a way to take a bunch of variables and refactor them all and the methods they are being used back to maps?

5 comments
Comment actions Permalink

Hello,

Looks like a task for the 'Type Migration' refactoring.

Denis

0
Comment actions Permalink

i figured that much, but in that case , that's the diffrerence between that and Generify?

0
Comment actions Permalink

Well, these are two completely different refactorings. Feel free to check the reference - Generify, Type Migration.

Denis

0
Comment actions Permalink

oh i see i thought it meant use more generic types,so the migrate type be used on several variables ?

0
Comment actions Permalink

It may be called multiple times for different variables.

Denis

0

Please sign in to leave a comment.