On Fri, Jan 16, 2009 at 9:22 PM, Paul King <[email protected]> wrote: > > On Thu, Jan 15, 2009 at 1:36 AM, Reinier Zwitserloot <[email protected]> > wrote: >> >> [...] (I'm still somewhat >> amazed that eclipse, netbeans, and IDEA don't have a '1.5 this code >> for me please' refactor tool, AFAIK). > > The 'Generify...' refactoring in IntelliJ (I am using 8.0.1) is pretty good.
Eclipse has a similar feature. It needs you to put some anchors in every now and then (particularly in web-apps where way too much gets passed around in maps of signature <String,Object>), but it speeds migration up a lot. The basic process looks like this: 1) turn raw type warnings on 2) run the "Generify" refactoring on the whole project 3) pick one warning that's still left 4) repeat from step 2 until no warning left Converting a reasonably large Struts project still took me a few days, but not only where things passed through maps a lot, it also had some hidden bugs where something should have been a List<X>, but contained the occasional Y. All this is pretty much impossible to automate completely. If I recall correctly there's support for converting the for loops, too. Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
