user751637
user751637

Reputation: 317

java dependency analysis

I want to know that if there is any easy to use tool, for Java, to perform following operations -

  1. A tool that can tell me what classes are never been called anywhere in the project?
  2. If some classes are calling each other but it is not part of project.

Upvotes: 2

Views: 1391

Answers (4)

henry
henry

Reputation: 6106

UCDetector covers off point 1, not sure about point 2.

http://www.ucdetector.org/

Upvotes: 0

Andrea Colleoni
Andrea Colleoni

Reputation: 6021

You can use a static code analyzer such as SourceMonitor. There you can inspect per-method calls and see if a class contains methods that are not called.

Upvotes: 2

Arnon Rotem-Gal-Oz
Arnon Rotem-Gal-Oz

Reputation: 25929

There are tools like Structure 101 and IDEs like Intellij that provide dependencies analysis

Upvotes: 1

Tudor
Tudor

Reputation: 62469

If you are using eclipse you can install the CodePro plugin. It has tools to test code coverage. Instructions here: http://code.google.com/javadevtools/codepro/doc/installation/updatesite_3.5.html

Upvotes: 1

Related Questions