Simon,

There are numerous tools you can use. The two main ones available
are:

- Checkstyle (http://checkstyle.sf.net)
- PMD (http://pmd.sf.net)

Historically Checkstyle focuses more on coding standards and checks
for things like Javadoc quality, brace placement, use of whitespace,
number of parameters in methods, etc. It does find unused imports and
other QA checks.

PMD has more of a bent on analysing the meaning of the source code,
to find unused imports, variables, methods + plus other tests. Hence
it is slower than Checkstyle.

There is a degree of overlap between them both. It depends on what
you are wanting to achieve (and how quickly) as to which one to use.

Regards,
Oliver

----- Original Email -----
From: Simon Brooke <[EMAIL PROTECTED]>
To: Jakarta General List <[EMAIL PROTECTED]>
Date: 27-Feb-2003 07:25
Subject: Re: Another unused import statement report is out...

> On Wednesday 26 Feb 2003 7:57 pm, Tom Copeland wrote:
> > ....unused imports are down 40% since last November, crikey!
> >
> > http://cvs.apache.org/~tcopeland/jakarta_bad_imports.htm
> >
> > Past reports can be found here - http://cvs.apache.org/~tcopeland/, and
> > mad props to the xml-xalan project, who went from 1421 unused imports to
> > 2 in the last month.
> 
> Do you have a tool for checking for unused imports? I know I have a lot of 
> them in my code, but weeding them takes time and time is something I'm
always 
> short of...
> 
> -- 
> [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/
> 
>       See one nuclear war, you've seen them all.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to