A tool that lists all obsolete classes / methods that are not used anywhere else?

I need to clear some old code. Removing unused code is an important step.

Is there a tool that finds all the legacy code, removes all the elements that are still in use somewhere, and gives me a list of unused legacy code?

For bonus points: is there a tool that can find an unused code, not an outdated code?

I know that this is never perfect, but I know for what cases I need special processing (as in DB drivers or classes referenced via DI).

+3
source share
3 answers

, . , , ? IDE . , @Deprecated . , :

, eclipse ucdetector . , , , , . .

, /, , . -, . , , , , , .

, - , , cobertura, clover emma.

+3
0

IntelliJ , . , .

0

Source: https://habr.com/ru/post/1776445/


All Articles