Not impossible, just imperfect. Several byte code obfuscators provide the facility to remove unused methods from jars - presumably they face the same issues.
-Tim > -----Original Message----- > From: Siegfried Goeschl [mailto:[EMAIL PROTECTED] > Sent: Monday, 6 October 2003 1:43 AM > To: Maven Users List > Subject: Re: Source code analyzer for unused method detection? > > > Oops, > > considering dynamic class loading and reflection it is actually > impossible ... > > Cheers, > > Siegfried Goeschl > > > > On Sunday 05 October 2003 17:27, Siegfried Goeschl wrote: > > It is actually not easy to detect an unused method due inheritance and > > polymorphism since the class of the instance you use is determined at > > runtime. > > > > If you have some time to spend you can either search the web (there are > > many static source code analyzers out there and tell us your > findings!!) or > > use a code profiler such as CLOVER or JProbe . > > > > Cheers, > > > > Siegfried Goeschl > > > > On Sunday 05 October 2003 14:04, Tim Anderson wrote: > > > The results wouldn't be all that meaningful on reusable components, > > > but at the application level, it would be useful to > > > detect cruft. > > > > > > -Tim > > > > > > > -----Original Message----- > > > > From: Vincent Massol [mailto:[EMAIL PROTECTED] > > > > Sent: Sunday, 5 October 2003 6:09 PM > > > > To: 'Maven Users List' > > > > Subject: RE: Source code analyzer for unused method detection? > > > > > > > > > > > > Hi Tim, > > > > > > > > How do you know a public method is not used by external code? > > > > > > > > -Vincent > > > > > > > > > -----Original Message----- > > > > > From: Tim Anderson [mailto:[EMAIL PROTECTED] > > > > > Sent: 05 October 2003 07:48 > > > > > To: Maven Users List > > > > > Subject: Source code analyzer for unused method detection? > > > > > > > > > > Hi, > > > > > does anyone know of a code analyzer which can detect unused > > > > > > > > methods? > > > > > > > > > The PMD plugin only reports on unused private methods - > I'm looking > > > > > > > > for > > > > > > > > > one > > > > > which can also do public or protected methods. > > > > > > > > > > Thanks, > > > > > > > > > > Tim > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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] > > > > > > --------------------------------------------------------------------- > > > 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] > > > --------------------------------------------------------------------- > 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]