Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Finding all methods having 0 references
Finding all methods having 0 references [message #159705] Thu, 20 May 2004 14:53 Go to next message
Eclipse UserFriend
My team has recently taken over a new code base, and we're looking for all
methods that have zero references in the code base. Is there a quick way
to get a list of all of these, or does one need to go method by method and
check for references? I've looked in the help and different menu options,
but didn't find a way to do this. Thanks for any suggestions.

--Gary
Re: Finding all methods having 0 references [message #159717 is a reply to message #159705] Thu, 20 May 2004 17:59 Go to previous messageGo to next message
Eclipse UserFriend
I think there is an option to mark unused private methods as warnings.
I don't think there is such option for other methods. Also public
methods may be
used by reflection, which makes such search inaccurate.

Genady

Genady Beryozkin
http://www.genady.net/



Gary Doney wrote:

>My team has recently taken over a new code base, and we're looking for all
>methods that have zero references in the code base. Is there a quick way
>to get a list of all of these, or does one need to go method by method and
>check for references? I've looked in the help and different menu options,
>but didn't find a way to do this. Thanks for any suggestions.
>
>--Gary
>
>
>
Re: Finding all methods having 0 references [message #159722 is a reply to message #159705] Thu, 20 May 2004 17:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mylastname.mycompany.com

On Thu, 20 May 2004 18:53:11 +0000, Gary Doney wrote:

> My team has recently taken over a new code base, and we're looking for all
> methods that have zero references in the code base. Is there a quick way

You may be able to use this plugin to do what you want:
http://www.cs.ubc.ca/labs/spl/projects/jquery/

JQuery is a flexible, query-based source code browser, developed as an
Eclipse plug-in. After selecting a java working set of interest, a JQuery
user can define his or her own top-level queries (or "browsers")
on-the-fly by formulating logic queries and running them against his/her
source code.

Matt
Re: Finding all methods having 0 references [message #159725 is a reply to message #159717] Thu, 20 May 2004 17:25 Go to previous messageGo to next message
Eclipse UserFriend
Genady,

Thanks for the tip. We had considered the possibility of reflective
calls, and that's not being done in this application. Unfortunately, most
of the methods are public, so the filter won't help too much, but it will
help some. ;-)

--Gary
------------------------------------------------------------ --------
Genady wrote:

> I think there is an option to mark unused private methods as warnings.
> I don't think there is such option for other methods. Also public
> methods may be
> used by reflection, which makes such search inaccurate.

> Genady

> Genady Beryozkin
> http://www.genady.net/



> Gary Doney wrote:

> >My team has recently taken over a new code base, and we're looking for all
> >methods that have zero references in the code base. Is there a quick way
> >to get a list of all of these, or does one need to go method by method and
> >check for references? I've looked in the help and different menu options,
> >but didn't find a way to do this. Thanks for any suggestions.
> >
> >--Gary
> >
> >
> >
Re: Finding all methods having 0 references [message #160198 is a reply to message #159722] Sun, 23 May 2004 23:07 Go to previous message
Eclipse UserFriend
Matt,

I hadn't heard of JQuery before, but it looks interesting. I'll read up
on it and see if I can use it. Thanks for the tip.

--Gary

Matthew Conway wrote:

> On Thu, 20 May 2004 18:53:11 +0000, Gary Doney wrote:

> > My team has recently taken over a new code base, and we're looking for all
> > methods that have zero references in the code base. Is there a quick way

> You may be able to use this plugin to do what you want:
> http://www.cs.ubc.ca/labs/spl/projects/jquery/

> JQuery is a flexible, query-based source code browser, developed as an
> Eclipse plug-in. After selecting a java working set of interest, a JQuery
> user can define his or her own top-level queries (or "browsers")
> on-the-fly by formulating logic queries and running them against his/her
> source code.

> Matt
Previous Topic:JVM SWING
Next Topic:Shift+Ctl+F
Goto Forum:
  


Current Time: Thu Jul 24 20:33:00 EDT 2025

Powered by FUDForum. Page generated in 0.03189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top