ferstl / depgraph-maven-plugin

A Maven plugin that generates dependency graphs in various formats (DOT, GML, PlantUML, JSON and Text)
Apache License 2.0
561 stars 85 forks source link

#159 Fix ConcurrentModificationException in the text graph #161

Closed ferstl closed 2 years ago

ferstl commented 2 years ago

Enabling showDuplicates and/or showConflicts introduces cycles in the dependency graph which could cause the recursive method writeChildren() to clear the list of edges while still iterating over it. Creating a copy of the list for iteration will solve this problem.

Signed-off-by: Stefan Ferstl st.ferstl@gmail.com