java中的依赖关系,Java类和方法的依赖关系图

博主正在寻找一种工具来分析其Java项目,以了解类和方法间的依赖关系,并消除冗余代码。JDepend被推荐用于解决此类问题,它能提供代码依赖地图,帮助改进设计。在接手大型遗留代码时,博主通常首先使用JDepend进行初步理解。
摘要由CSDN通过智能技术生成

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值