Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Something like unnecessary code detector for NetBeans

NetBeans is by default better than Eclipse (imho) in detecting code smells, but the Unnecessary Code Detector for Eclipse seems to find more dead code and code that should be improved. Is there something comparable for NetBeans or is there a Maven plug-in?

like image 425
deamon Avatar asked Aug 19 '10 07:08

deamon


People also ask

Which tool can be used to identify dead unused code?

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.

How do I find unused classes in Eclipse?

UCDetector (Unecessary Code Detector) is a Open Source eclipse PlugIn Tool to find unecessary (dead) public java code. It also tries to make code final, protected or private. Caveat: Cid mentions in the comments: UCDetector shall not work if there are interface implementations which will be known only at runtime.


1 Answers

Not a direct answer to your question, but this might be interesting: Here is a set of plugins for NetBeans to integrate tools like FindBugs, PMD and CheckStyle into NetBeans.

Those tools are static code analysis tools: they look at your source code and give you information about possible error-prone constructs, possible bugs etc. and can most likely also find unused code.

like image 142
Jesper Avatar answered Sep 22 '22 09:09

Jesper