Jack said:
Royan a écrit :
In eclipse, select your project, right click on it, and then Refactor ->
Infer Generic Type Arguments...
I guess you will have to check/correct some piece by hand, but most of
it will be done automaticaly, depending how complexe is the code.
However, in my experience it works much better if the programmer has
some experience with generics.
I tried that technique shortly after I moved to 1.5, and got in such a
muddle that I had to revert out the changes and live with the warnings.
A few months later, I tried again on the same program and it all went
through very smoothly.
The difference was that I had been using generics in new code and
reading about them. During the first attempt, I was essentially
guessing, and making a lot of wrong choices, when Eclipse did not know
what to do. During the second attempt, I knew what I was doing.
Patricia