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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With