views:

141

answers:

1

Does anyone know of a tool (besides Eclipse or any other IDE) that I can use to find unused imports in a Java source file?

I am looking for a command-line type of tool (to integrate in a larger script).

Thank you.

+5  A: 

PMD has a rule about unused imports.

Other code quality tools, probably have similar rules

Joachim Sauer
So has Checkstyle.
Willi