Skip to content
mebigfatguy edited this page Jan 27, 2011 · 5 revisions

Welcome to the deadmethods wiki!

deadmethods is an ant task for finding methods that are unused in the code base, irrespective of what access modifier is used: private, protected, public, etc. To use, create an ant task such as:

`

	<deadmethods ignorePackages="package.you.dont.want.reported,another.package.you.dont.want.reported">
		<classpath refid="run_on_this.classes.classpath"/>
		<auxClasspath refid="3rdparty.classes.classpath"/>
	</deadmethods>

`

Currently deadmethods won't detect reflective method use, nor will it find jsp use, unless the classes generated from the jsps are on the classpath. Of course, if the project you are running deadmethods on is an api, it is expected that methods will found that aren't used, but shouldn't be deleted as they are available for client developers. The project is just getting started so bug no doubtly will occur.

Clone this wiki locally