Finding unused jars used in an eclipse project

前端 未结 5 747
情歌与酒
情歌与酒 2020-11-28 02:52

Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?

5条回答
  •  旧时难觅i
    2020-11-28 03:20

    I know this is an old one, but if anyone else stumbles upon this, Eclipse does this by itself.

    Navigate to Project properties->Java Code Style->Clean Up Select the Eclipse [Built-in] and it does the following:

    • Change non static accesses to static members using declaring type
    • Change indirect accesses to static members to direct accesses (accesses through subtypes)
    • Remove unused imports
    • Add missing '@Override' annotations
    • Add missing '@Override' annotations to implementations of interface methods
    • Add missing '@Deprecated' annotations
    • Remove unnecessary casts
    • Remove unnecessary '$NON-NLS$' tags

提交回复
热议问题