Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Can IDEA do this?

Thread view: 
Aleksi Kallio - 14 Aug 2006 12:42 GMT
I have been told that IntelliJ IDEA can detect unused public methods.
However I can't find such a feature from Analyzer -> Inspect Code.

Is it just confusingly named or do you need some plugin for that?

Of course such a search is just a heuristic, as reflection and usage
outside of searched code can't be detected, but it's not an issue.

I'm using version 5.1.2.
Christopher Benson-Manica - 14 Aug 2006 14:24 GMT
> I have been told that IntelliJ IDEA can detect unused public methods.
> However I can't find such a feature from Analyzer -> Inspect Code.

> Is it just confusingly named or do you need some plugin for that?

Have you tried "unused declaration"?  (I'm using the 6 Beta FWIW) I
don't know that it detects unused *public* methods, though.

Signature

C. Benson Manica           | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com      | don't, I need to know.  Flames welcome.

Aleksi Kallio - 15 Aug 2006 08:44 GMT
>> I have been told that IntelliJ IDEA can detect unused public methods.
>> However I can't find such a feature from Analyzer -> Inspect Code.
> Have you tried "unused declaration"?  (I'm using the 6 Beta FWIW) I
> don't know that it detects unused *public* methods, though.

Is it in the "Declaration redundancy" category? I don't have it there,
maybe I should try beta 6.

There is "Declaration access can be weaker" which reports when public
methods could be package local, protected or private, but not when they
could be removed completely.
Aleksi Kallio - 15 Aug 2006 12:45 GMT
>> Have you tried "unused declaration"?  (I'm using the 6 Beta FWIW) I
>> don't know that it detects unused *public* methods, though.
> Is it in the "Declaration redundancy" category? I don't have it there,
> maybe I should try beta 6.

Oh, it was under "General". It did the trick, thanks for your help!

It's strange how such a useful tool as this is so hard to find...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.