-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve displaying of circular dependency error #11299
Conversation
Since in most cases classnames are quite long, it seems better to show each on a new line. This is also better for classes that have many constructor arguments that need to be displayed.
Since circles are not guaranteed to return to the first path element, actual last circle element needs to be found
The non-cyclic path display could be changed to a similar, as well, but I am not sure if that would be an improvement there. |
looks great! Just have to adjust the original tests |
Another rendering anomaly that may be worth looking at is when you have a Factory bean in the middle that causes the loop I am not sure we are rendering the factory name correctly |
The display in the test I added looks good. But that's a great idea to add the test, I caught an edge case in my implementation where the circle did not point to correct element. |
Quality Gate passedIssues Measures |
For some classes
ClassA
,ClassB
,ClassC
andClassD
that have a dependency cycle, the current message is:After the change it would be:
This improves it by:
ClassB->ClassA->ClassC->ClassB
, soClassD
is ommittedA
,B
,C
did not seem realistic.