UCDetector (Unnecessary Code Detector) is a eclipse PlugIn tool to find unnecessary (dead) public java code. For example public classes, methods or fields which have no references.
Categories: IDE, Source Code Analyzer, Tools
Additional Details
Eclipse Versions: 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8), Previous to Juno (<=4.1), 2020-06 (4.16), 2020-09 (4.17), 2020-12 (4.18), 2021-03 (4.19)
Platform Support: Windows, Mac, Linux/GTK
Organization Name: Jörg Spieler
Development Status: Production/Stable
Date Created: Thursday, March 13, 2008 - 10:12
License: EPL
Date Updated: Wednesday, December 14, 2022 - 09:46
Submitted by: Joerg Spieler
Date | Ranking | Installs | Clickthroughs |
---|---|---|---|
October 2024 | 128/583 | 84 | 4 |
September 2024 | 132/642 | 209 | 10 |
August 2024 | 132/641 | 188 | 12 |
July 2024 | 141/663 | 181 | 17 |
June 2024 | 123/681 | 232 | 19 |
May 2024 | 149/682 | 205 | 11 |
April 2024 | 143/687 | 224 | 17 |
March 2024 | 144/694 | 239 | 13 |
February 2024 | 140/687 | 211 | 24 |
January 2024 | 153/691 | 202 | 16 |
December 2023 | 151/671 | 206 | 5 |
November 2023 | 153/686 | 236 | 13 |
Unsuccessful Installs
Unsuccessful Installs in the last 7 Days: 3
Count | Error Message |
---|---|
3 | Cannot continue the operation. There is another install operation in progress. |
Reviews Add new review
Limited use in Spring projects
Submitted by Axel Amthor on Tue, 06/13/2023 - 05:10
Within Spring projects, almost all @Bean or @Component annotated Methods / Classe are listed as "without reference" which is totally ok due to the Spring architecture.
So, making things "private" or deleteing beans based on the UCD findings is not always recommended.
very helpful
Submitted by Leonard Bosco on Sun, 09/26/2021 - 03:10
found code parts I completly forgot :-)
Thanks
Thank you!
Submitted by David Kimery on Fri, 06/26/2020 - 14:38
This is great! I am converting a rather large and old Spring 3 project to Spring Boot and there are a ton of unsed classes. This is going to help weed out the useless crap.
checks text files in the whole workspace
Submitted by arne anka on Wed, 05/16/2018 - 06:04
thanks for the plugin, but there's an issue that seriously limits its usability for me:
plugin checks also text files (or even more?) in the whole worksprace instead of limiting itself to the current project.
given Eclipse's long-standing an annoying failure to keep its idea of files' states up-to-date, I get a long list of
Resource is out of sync with the file system: ...
which is plain nonsense (files have not changed for a long time _and_ I've run refresh several times) and on top of it about files that have nothing to do with the project to be checked.
additionally, a check run takes unnecessarily long.
Re: checks text files in the whole workspace
Submitted by Eric Ahnell on Tue, 01/28/2020 - 17:17
In reply to checks text files in the whole workspace by arne anka
This is annoying for sure, but that's ultimately due to the defaults not being a good fit for your needs. I run into this myself, so I change them... but I REALLY wish the UCDetector settings supported import/export. That would make both my life and yours a lot easier!
problems to install plugin
Submitted by Felipe Navarro on Sat, 02/17/2018 - 18:52
Re: problems to install plugin
Submitted by Joerg Spieler on Wed, 02/21/2018 - 19:11
In reply to problems to install plugin by Felipe Navarro
The update site works now: http://ucdetector.sourceforge.net/update/
It seems SourceForge has still trouble. See: https://twitter.com/sfnet_ops/
Invalid repository error!
Submitted by Eric Ahnell on Wed, 02/14/2018 - 19:35
I have created a bug for this on the Sourceforge tracker - suffice to say, it won't install.
Re: Invalid repository error!
Submitted by Joerg Spieler on Sun, 02/18/2018 - 12:31
In reply to Invalid repository error! by Eric Ahnell
The temporary Sourceforge Problem ist fixed. See https://twitter.com/sfnet_ops/status/965055907557269504
Breaks eclipse
Submitted by John Somers on Wed, 09/20/2017 - 06:38
After installing, my Eclipse Mars installation no longer identifies classes with compiler errors in Project Explorer view and no longer rebuilds automatically
Re: Breaks eclipse
Submitted by Joerg Spieler on Fri, 09/29/2017 - 18:56
In reply to Breaks eclipse by John Somers
Hi John,
nobody else reported this problem.
If you have any stack traces from:
WORKSPACE/.metadata/.log
or
Eclipse Error Log View
please add a bug here: https://sourceforge.net/p/ucdetector/bugs/
Thanks
Jörg
Problem while using
Submitted by Bharath Bollisetty on Fri, 09/16/2016 - 03:20
After successfully installation i am not able to see any "UCDetector" link in my context menu after right click on the package.
Useful
Submitted by Tai Le Tien on Sun, 10/04/2015 - 17:59
I have to work on a Eclipse RCP project which contains full of copy-paste, dead code. This plugin helps me a lot during refactoring time.
Breaks my workspace
Submitted by Tharpa Roberts on Tue, 08/04/2015 - 11:48
After I install it, all I can see in Eclipse is a blank screen. Even uninstalling it does not restore the work space. I cannot even see my code. The only way to fix it is to go to Window, Reset Perspective. I have confirmed that this plug-in is the problem. I have uninstalled it and reinstalled it, and the same thing happens.
Hi Tharpa,
Submitted by Joerg Spieler on Mon, 08/10/2015 - 16:44
In reply to Breaks my workspace by Tharpa Roberts
Hi Tharpa,
if you have any stack traces from:
WORKSPACE/.metadata/.log
or
Eclipse Error Log View
please add a bug here: https://sourceforge.net/p/ucdetector/bugs/
Thanks
Jörg
Excellent tool! Highly recommended!
Submitted by Jean-Noël Rouvignac on Thu, 05/21/2015 - 15:02
I cannot work without this tool anymore.
It helps you tidy up the code and removing methods/fields/classes that are never called anywhere.
It also suggests reducing methods/fields/classes visibility which is key to maintain the code.
Lastly it suggests fields that could be final. It sometimes takes a of work to get there, but you won't regret it.
Be careful when applying the changes if your code uses reflection.
I give it a 5/5 mark and wished it could do even more!
Thanks Jörg Spieler for this very useful tool!
Recommended
Submitted by Igor Rodriguez on Thu, 05/22/2014 - 12:05
This plugin helps you get rid of the dead code in your project. This means that your code-base will be reduced and the maintenance will be easier. Thanks to this plugin I removed 20.000 lines of code from a project of 130.000 without changing any behavior.
Anyway it is not perfect, and you'll find that you have more dead code than the one this plugin detects, but it will mark about 70-80% of it, so it is a great option.
Great for large projects
Submitted by Nathaniel Waisbrot on Mon, 10/15/2012 - 22:46
I've found this very useful with the large code-base at my office. It does a great job of finding the dead code. Nice extras are that it will mark things as only used in unit tests and it finds when the access specifier is too general.
Great plugin
Submitted by Mario Marinato on Tue, 01/03/2012 - 14:22
After a few hours trying out different solutions, you may end up having methods from your first tries forgotten throughout your code. UCDetector helps spotting them.
Very useful
Submitted by sergey Mising name on Fri, 03/26/2010 - 23:59
Good work - thank you very much