Hello, everyone!
I have to refactor an existing project, which is not that small. It contains a lot of arrays declarations and accesses:
(X is not a generic type, it's just a placeholder).
declarations: X[]
and X[][]
,
access: someArray[i]
and someArray[i][j]
.
I have to rewrite everything to use generic Lists:
declaration: List<X>
and List<List<X>>
,
access: someList.get(i)
and someList.get(i).get(j)
.
I couldn't find a possibility to automatize such refactoring, neither in Eclipse, nor in Netbeans (both newest versions).
Are there some tools available to do such refactoring?
EDIT:
The project is very algorithm-oriented. Internal implementation of algorithms will not be touched. But the exposure to the external world must be changed. Most classes are made in such a way, that they only hold some result arrays or arrays of arrays.