You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Martin van den Bemt <ml...@mvdb.net> on 2002/10/23 22:39:07 UTC

[Fwd: Re: [eclipse-dev] Java compiler defaults changed]

FYI...

Mvgr,
Martin
-----Forwarded Message-----

From: Timothy Halloran <th...@GS06.ISRI.CMU.EDU>
To: eclipse-dev@eclipse.org
Subject: Re: [eclipse-dev] Java compiler defaults changed
Date: 23 Oct 2002 16:29:24 -0400

On the unused imports, heres some empirical data for I collected on
Eclipse and some other (well-known) Java code (this has been floating
around the jdt-ui-dev mailing list for some time):

                     | import  |    UNUSED IMPORTS     |
Name                 | Uses(u) |   #   |  %u  | /kSLOC | kSLOC
---------------------+---------+-------+------+--------+------
Jakarta Ant 1.5      |   3,526 |   172 |  4.9 |    2.7 |    64
Jakarta Tomcat 4.0.4 |   4,275 |   966 | 22.6 |   14.6 |    66
Sun J2SDK 1.4.0_01   |  15,101 | 3,216 | 21.3 |    6.3 |   508
NetBeans 3.2.2       |  30,102 | 6,626 | 22.0 |   11.6 |   571
ECLIPSE 2.0          |  49,097 | 2,859 |  5.8 |    3.6 |   792

I removed the NetBeans test infrastructure (which is quite involved)
from the analysis (I was using Eclipse so I had to get NetBeans to build
within Eclipse, which was lots of fun:-).

Lets hope this number goes to 0 for Eclipse in 2.1!

Take Care
Tim Halloran
Carnegie Mellon University
On Tue, 2002-10-22 at 07:04, Philippe Mulet wrote:
> FYI - from this integration build on, you'll notice that the Java compiler
> defaults will have changed to report 2 extra warnings:
> - static members accessed in non-static way (e.g.   this.CONSTANT).
> - unused imports (often resulting from codeassisting).
> 
> If you see these, you should consider fixing them so as to improve your
> code quality.
> 
> _______________________________________________
> eclipse-dev mailing list
> eclipse-dev@eclipse.org
> http://dev.eclipse.org/mailman/listinfo/eclipse-dev

_______________________________________________
eclipse-dev mailing list
eclipse-dev@eclipse.org
http://dev.eclipse.org/mailman/listinfo/eclipse-dev




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Fwd: Re: [eclipse-dev] Java compiler defaults changed]

Posted by di...@multitask.com.au.
Jon Scott Stevens <jo...@latchkey.com> wrote on 24/10/2002 09:21:02 AM:

> on 2002/10/23 2:24 PM, "Tom Copeland" <to...@infoether.com> wrote:
> 
> > Speaking of mass source code analysis, here's some of the Sourceforge
> > projects and their unused code stats (unused locals, unused fields,
> > etc):
> > 
> > http://pmd.sourceforge.net/cgi-bin/webpmd.pl
> > 
> > I thought about doing a similar page for Jakarta projects - just use 
the
> > anonymous CVS access for each Jakarta project, run PMD on it, pipe the
> > output to a file, and link it all together - but perhaps that would be
> > annoying....
> > 
> > Yours,
> > 
> > Tom
> 
> Maven uses various plugins to essentially produce this same data (and 
more).
Just in case you didn't know, Jon, PMD is available as a Maven plugin.

--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Fwd: Re: [eclipse-dev] Java compiler defaults changed]

Posted by Jon Scott Stevens <jo...@latchkey.com>.
on 2002/10/23 2:24 PM, "Tom Copeland" <to...@infoether.com> wrote:

> Speaking of mass source code analysis, here's some of the Sourceforge
> projects and their unused code stats (unused locals, unused fields,
> etc):
> 
> http://pmd.sourceforge.net/cgi-bin/webpmd.pl
> 
> I thought about doing a similar page for Jakarta projects - just use the
> anonymous CVS access for each Jakarta project, run PMD on it, pipe the
> output to a file, and link it all together - but perhaps that would be
> annoying....
> 
> Yours,
> 
> Tom

Maven uses various plugins to essentially produce this same data (and more).

-jon

-- 
StudioZ.tv /\ Bar/Nightclub/Entertainment
314 11th Street @ Folsom /\ San Francisco
        http://studioz.tv/


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: [Fwd: Re: [eclipse-dev] Java compiler defaults changed]

Posted by Tom Copeland <to...@infoether.com>.
Speaking of mass source code analysis, here's some of the Sourceforge
projects and their unused code stats (unused locals, unused fields,
etc):

http://pmd.sourceforge.net/cgi-bin/webpmd.pl

I thought about doing a similar page for Jakarta projects - just use the
anonymous CVS access for each Jakarta project, run PMD on it, pipe the
output to a file, and link it all together - but perhaps that would be
annoying....

Yours,

Tom



> -----Original Message-----
> From: Martin van den Bemt [mailto:mllist@mvdb.net] 
> Sent: Wednesday, October 23, 2002 3:39 PM
> To: general@jakarta.apache.org
> Subject: [Fwd: Re: [eclipse-dev] Java compiler defaults changed]
> 
> 
> FYI...
> 
> Mvgr,
> Martin
> -----Forwarded Message-----
> 
> From: Timothy Halloran <th...@GS06.ISRI.CMU.EDU>
> To: eclipse-dev@eclipse.org
> Subject: Re: [eclipse-dev] Java compiler defaults changed
> Date: 23 Oct 2002 16:29:24 -0400
> 
> On the unused imports, heres some empirical data for I collected on
> Eclipse and some other (well-known) Java code (this has been floating
> around the jdt-ui-dev mailing list for some time):
> 
>                      | import  |    UNUSED IMPORTS     |
> Name                 | Uses(u) |   #   |  %u  | /kSLOC | kSLOC
> ---------------------+---------+-------+------+--------+------
> Jakarta Ant 1.5      |   3,526 |   172 |  4.9 |    2.7 |    64
> Jakarta Tomcat 4.0.4 |   4,275 |   966 | 22.6 |   14.6 |    66
> Sun J2SDK 1.4.0_01   |  15,101 | 3,216 | 21.3 |    6.3 |   508
> NetBeans 3.2.2       |  30,102 | 6,626 | 22.0 |   11.6 |   571
> ECLIPSE 2.0          |  49,097 | 2,859 |  5.8 |    3.6 |   792
> 
> I removed the NetBeans test infrastructure (which is quite involved)
> from the analysis (I was using Eclipse so I had to get 
> NetBeans to build
> within Eclipse, which was lots of fun:-).
> 
> Lets hope this number goes to 0 for Eclipse in 2.1!
> 
> Take Care
> Tim Halloran
> Carnegie Mellon University
> On Tue, 2002-10-22 at 07:04, Philippe Mulet wrote:
> > FYI - from this integration build on, you'll notice that 
> the Java compiler
> > defaults will have changed to report 2 extra warnings:
> > - static members accessed in non-static way (e.g.   this.CONSTANT).
> > - unused imports (often resulting from codeassisting).
> > 
> > If you see these, you should consider fixing them so as to 
> improve your
> > code quality.
> > 
> > _______________________________________________
> > eclipse-dev mailing list
> > eclipse-dev@eclipse.org
> > http://dev.eclipse.org/mailman/listinfo/eclipse-dev
> 
> _______________________________________________
> eclipse-dev mailing list
> eclipse-dev@eclipse.org
> http://dev.eclipse.org/mailman/listinfo/eclipse-dev
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:general-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>