Shiva.Om Kumar wrote:I am working on a project which is quite old. But as usual, JDK is already upgraded to JDK 6.
Application works good and there are no big issues. But periodical enhancements are on.
Can you please suggests if it is good to spend time on replacing existing data-structure code with generics?
Without seeing the code, it very difficult to answer.
On the one hand, there's the old adage: if it ain't broke, don't fix it.
On the other, adding generics may make things easier (and safer) for future enhancements.
One approach might be to add generics piecemeal as and when a structure gets changed, but as I said, without seeing the project itself, it's awfully difficult to advise.
Winston