Unnecessary Code Detector

Add this URL to your Eclipse Installation to reach this solution's update site.

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)
Photon (4.8)


Learn more...

Details Group Tabs

Installs Last Update: 
Thursday, May 24, 2018 - 23:42

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.

 

 

The update site works now: http://ucdetector.sourceforge.net/update/

It seems SourceForge has still trouble. See: https://twitter.com/sfnet_ops/

I have created a bug for this on the Sourceforge tracker - suffice to say, it won't install.

The temporary Sourceforge Problem ist fixed. See https://twitter.com/sfnet_ops/status/965055907557269504

After installing, my Eclipse Mars installation no longer identifies classes with compiler errors in Project Explorer view and no longer rebuilds automatically

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

After successfully installation i am not able to see any "UCDetector" link in my context menu after right click on the package.

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.

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,

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

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!

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.

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.

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.

Good work - thank you very much