0

The project(written in Java) is getting large and large and some code will never be used. Is there a way to detect those dead/unuseful code and clean them up. I'm open for ideas.

Arnaud Denoyelle
  • 29,980
  • 16
  • 92
  • 148
Edmond
  • 614
  • 2
  • 11
  • 26

1 Answers1

2

Use an IDE like Eclipse, there you might detect with warnings some of the code that is not used.

It will detect at least non used imports, private methods or local variables that are not used.

It will not detect public methods or attribute since it cannot guarantee that it can be used by someone else. That is something you will have to lookup, make private everything that does not need to be public and then you will get those warning helpers.

porfiriopartida
  • 1,546
  • 9
  • 17