---
title: 'Dead Code Detector (DCD)'
url: 'https://tutego.de/blog/javainsel/2009/02/dead-code-detector-dcd'
markdown: 'https://tutego.de/blog/javainsel/2009/02/dead-code-detector-dcd.md'
date: '2009-02-27'
description: 'Von der Webseite https://dcd.dev.java.net/: If you are a developer or a team leader, Dead Code Detector (DCD) simply finds never used code in your Java/JEE applications. Deleting dead code helps to reduce cost of maintenance and to improve quality of code, and as a side effect it improves code cov…'
taxonomy:
  category:
    - 'Open Source'
---

# Dead Code Detector (DCD)

![Illustration einer tropischen Insel mit Palmen und einem hohen Berg](https://tutego.de/blog/javainsel/user/themes/tutego/images/insel-cover.jpg)# Java Blog für Programmierer

[Java Blog für Programmierer](https://tutego.de/blog/javainsel/)

## Dead Code Detector (DCD)

27.02.2009 · [Christian Ullenboom](https://tutego.de/blog/javainsel/author/admin/)

Von der Webseite [https://dcd.dev.java.net/](https://dcd.dev.java.net/ "https://dcd.dev.java.net/"):

> If you are a developer or a team leader, Dead Code Detector (DCD) simply finds never used code in your [Java](http://en.wikipedia.org/wiki/Java_(programming_language))/JEE applications. Deleting [dead code](http://en.wikipedia.org/wiki/Unreachable_code) helps to reduce cost of maintenance and to improve quality of code, and as a side effect it improves code coverage metrics of tests by deleting code that can’t be tested. Provide a directory of compiled classes, a jar or a war file in the UI and DCD lists suspects of dead code. Dead code found can be private, package-private and even protected or public. Unread local variables, self assignments, `toString` on `String` and useless initializations are also detected. Please remember that dead code found by DCD is just suspects. DCD can not detect that reflection or other is used: ask to people who know your application and don’t complain if you don’t. You can read the [usage manual](https://dcd.dev.java.net/usage.html) to know how to launch and use DCD or check the [FAQ](https://dcd.dev.java.net/faq.html) if you have questions. The search is very fast (2000 classes/s on warm files) and made by static analysis of compiled classes without running the application or loading classes. DCD uses the library [ASM](http://asm.objectweb.org/) (licence open source, BSD) from [ObjectWeb/OW2](http://www.objectweb.org) to do the job.
> 
> Die letzte Version ist DCD 1.1 und vom 13.2.2009. Das Tool lässt sich auch über Java Web Start starten: [![](https://dcd.dev.java.net/webstart.small2.gif)](https://dcd.dev.java.net/)
> 
> ![https://dcd.dev.java.net/screenshot.png](https://dcd.dev.java.net/screenshot.png)

Kategorien: [Open Source](https://tutego.de/blog/javainsel/category/open-source/)

[← Alle Beiträge](https://tutego.de/blog/javainsel/)

---

## Navigation

- Previous: [PHP mit Quercus + Tomcat + Eclipse Java Web-Projekt](https://tutego.de/blog/javainsel/2009/02/php-mit-quercus-tomcat-eclipse-java-web-projekt.md)
- Next: [Ehrlicher Kommentar: "Swing 2: Pissing in the Wind"](https://tutego.de/blog/javainsel/2009/02/ehrlicher-kommentar-swing-2-pissing-in-the-wind.md)
