9 May 18:11
Re: Why are there no tools to find unused CLASSES?
From: Thomas Wolf <twolf <at> netforensics.com>
Subject: Re: Why are there no tools to find unused CLASSES?
Newsgroups: gmane.comp.java.ide.netbeans.user
Date: 2008-05-09 16:11:45 GMT
Subject: Re: Why are there no tools to find unused CLASSES?
Newsgroups: gmane.comp.java.ide.netbeans.user
Date: 2008-05-09 16:11:45 GMT
Hi Maxym,
I use PMD. I don't see a rule for this. Their web site doesn't mention one either. I never looked into writing my own rules thoug - if it's not too hard, I guess I can try. Thanks for the suggestion.
tom
Maxym Mykhalchuk wrote:
I use PMD. I don't see a rule for this. Their web site doesn't mention one either. I never looked into writing my own rules thoug - if it's not too hard, I guess I can try. Thanks for the suggestion.
tom
Maxym Mykhalchuk wrote:
Thomas, I believe there's such a tool - PMD should have a rule to detect unused classes. If not you may write a rule yourselfBest, Maxym P.S. It has a plugin for NetBeans 2008/5/8, Thomas Wolf <twolf <at> netforensics.com>:
Every now and then I work on larger projects where alot of cruft, in the form of unused Java files, has accumulated. Each time, I unsuccessfully look through NB and its plugins for a tool that can find potentially unused java classes in a project. I asked my Eclipse-toting colleagues and it, too, doesn't seem to have any such toolI always check the web for static analysis tools that might do the job - either my keyword searches are insufficient or there are just none to be found. Does anyone know of such a tool? I am not looking for a perfect solution - I know that no tool would know whether statically unreferenced classes are dynamically referenced from somewhere. I'm just looking for one that can check for static references. Many thanks for any suggestions/pointers. Tom P.S. Eclipse and Netbeans both have "Find Usages" capabilities. But with 3800 src files, I don't want to go through that exercise.
Best,
Maxym
P.S. It has a plugin for NetBeans
2008/5/8, Thomas Wolf
I always check the web for
static analysis tools that might do the job - either my keyword searches are
insufficient or there are just none to be found.
Does anyone know of such a tool?
I am not looking for a perfect solution - I know that no tool would know
whether statically unreferenced classes are dynamically referenced from
somewhere. I'm just looking for one that can check for static references.
Many thanks for any suggestions/pointers.
Tom
P.S. Eclipse and Netbeans both have "Find Usages" capabilities. But with
3800 src files, I don't want to go through that exercise.
RSS Feed