Find unused classes in a Java Eclipse project

前端 未结 3 1051
时光说笑
时光说笑 2020-11-28 23:39

I have a large Eclipse project in which there exist several classes which, although they ceased to be used anywhere, were never marked @Deprecated.

How can I easily

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 00:13

    Just use Analyze | Inspect Code with appropriate inspection enabled (Unused declaration under Declaration redundancy group).

    Using IntelliJ 11 CE you can now "Analyze | Run Inspection by Name ... | Unused declaration"

提交回复
热议问题