You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@basistech.com> on 2007/09/04 13:39:02 UTC

No warnings for unused imports

Howcome warnings for unused imports aren't enabled in eclipse?


RE: No warnings for unused imports

Posted by Benson Margulies <bi...@basistech.com>.
OK, that explains it. I created a new project as at least a temporary
home for a test case, and it didn't get those rules.

> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Tuesday, September 04, 2007 11:15 AM
> To: cxf-dev@incubator.apache.org
> Cc: Benson Margulies
> Subject: Re: No warnings for unused imports
> 
> On Tuesday 04 September 2007, Benson Margulies wrote:
> > Howcome warnings for unused imports aren't enabled in eclipse?
> 
> I think it's because the jaxb generated code sticks a bunch of unused
> imports into all the generated artifacts.    Thus, if it's on in
> eclipse, you get a ton of warnings in the generated directories.
> There are a few eclipse warning we had to turn off due to the
generated
> code not being "clean".
> 
> We DO have the unused imports checkstyle rule turned on so checkstyle
> will flag them.    If you have the checkstyle plugin for eclipse
> installed, they should show up.   For checkstyle, we can specifically
> tell it which directories should be checked and which ones to skip
> (generated code).
> 
> 
> --
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727    C: 508-380-7194
> daniel.kulp@iona.com
> http://www.dankulp.com/blog

Re: No warnings for unused imports

Posted by Daniel Kulp <dk...@apache.org>.
On Tuesday 04 September 2007, Benson Margulies wrote:
> Howcome warnings for unused imports aren't enabled in eclipse?

I think it's because the jaxb generated code sticks a bunch of unused 
imports into all the generated artifacts.    Thus, if it's on in 
eclipse, you get a ton of warnings in the generated directories.    
There are a few eclipse warning we had to turn off due to the generated 
code not being "clean".   

We DO have the unused imports checkstyle rule turned on so checkstyle 
will flag them.    If you have the checkstyle plugin for eclipse 
installed, they should show up.   For checkstyle, we can specifically 
tell it which directories should be checked and which ones to skip 
(generated code).


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog