Java类和方法的依赖关系图 [英] Dependency map for Java classes and methods

查看:589
本文介绍了Java类和方法的依赖关系图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我已经工作了一段时间的Java项目。设计开始相当不错,但随着变化而逐渐退化。我正在寻找一些将分析项目的工具。拥有不同类/方法的依赖关系的映射是非常好的。我觉得某些方法只能在那里实现一个非常具体的目标。我想消除不必要的代码,使我的设计更好。



任何建议都会很棒!谢谢!

解决方案

您可能想查看 JDepend 。它专门用于解决您所面临的问题。



作为顾问,我很普遍地被抛在一个巨大的遗留代码库中。通常我做的第一件事就是运行 JDepend ,试图帮助我了解代码库和所有的依赖关系。



祝你好运。


I have a Java project that I've been working on for a while. The design started out pretty good but slowly degraded as changes were made. I'm looking for some sort of tool that will analyze the project. It'd be really nice to have a map of the dependencies of different classes/methods. I feel like certain methods are only in there to fulfill a very specific goal. I'd like to eliminate unnecessary code and make my design better.

Any suggestions would be great! Thanks!

解决方案

You may want to check out JDepend. It was specifically developed to solve the problem you are facing.

Working as a consultant it is very common for me to be thrown in to a huge legacy code base. Typically the first thing I do is run JDepend on it to try to get my bearing on the code base and all of the dependencies.

Good luck.

这篇关于Java类和方法的依赖关系图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆