Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I also like to use <a href="http://www.ucdetector.org/index.html" rel="nofollow noreferrer"><strong>UCDetector</strong></a>:</p> <p><img src="https://i.stack.imgur.com/NBA01.png" alt="screenshot"></p> <blockquote> <p>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.</p> </blockquote> <p>Bonus: it can also find cyclic dependencies between classes </p> <p>(also a <a href="https://stackoverflow.com/questions/62276/java-package-cycle-detection-how-to-find-the-specific-classes-involved">number of other tools</a> -- including Findbugs -- knows how do do that too)</p> <hr> <p><strong>Caveat</strong>: <a href="https://stackoverflow.com/users/966078/cid">Cid</a> mentions <a href="https://stackoverflow.com/questions/665563/find-unused-classes-in-a-java-eclipse-project/665778#comment16413500_665778">in the comments</a>:</p> <blockquote> <p>UCDetector shall not work if there are interface implementations which will be known only at runtime.<br> It incorrectly marks the implementation classes as unused.</p> </blockquote> <hr> <p>Update 2017: static code analysis has evolved quite a bit in 8 years.<br> Using <a href="http://www.sonarlint.org/eclipse/" rel="nofollow noreferrer">SonarLint for Eclipse</a>, you can use the the latest <a href="https://docs.sonarqube.org/display/PLUG/SonarJava" rel="nofollow noreferrer">SonarJava 4.6 plugin</a> to analyze your code.<br> It will <a href="https://jira.sonarsource.com/browse/RSPEC-901" rel="nofollow noreferrer">find dead code</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload