Reputation: 6854
During my instrumentation, I had some issues with replacing a class definition in JVM. The modification of the class met all constraints (e.g. method addition, change of signature, static variable addition/modification etc.). But the only thing I couldn't check, and which stands out, is the circular reference.
The class I am handling is quite large and part of typical MVC-patterned action class from struts X.X. Is there any way I can use some existing library/open source tool which can help me identify circular reference?
Regards,
Upvotes: 2
Views: 173
Reputation: 2751
Yes, you can check the dependencies through metricsreloaded
. It's a plugin which has some other functionalities as well like calculating cyclometic complexity
etc.
You haven't mentioned the IDE you are using. In IntelliJ
you can install that plugin either from here MetricsReloaded or through plugin store(by searching metricsreloaded).
There must be a plugin for eclipse
as well.
Alternatively you can install SonarLint
plugin as well from here which also provides this functionality.
For Eclipse
try SonarLint
Upvotes: 1