Skip to content

Commit

Permalink
Merge pull request #975 from lefou/fix-concurrency-issue
Browse files Browse the repository at this point in the history
Fix concurrent modification issue
  • Loading branch information
eed3si9n authored May 2, 2021
2 parents c18637c + 80298bc commit b084eae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ object ClassToAPI {
): (Seq[api.ClassLike], Seq[String], Set[(Class[_], Class[_])]) = {
val cmap = emptyClassMap
classes.foreach(toDefinitions(cmap)) // force recording of class definitions
cmap.lz.foreach(_.get()) // force thunks to ensure all inherited dependencies are recorded
cmap.lz.toList
.foreach(_.get()) // force thunks to ensure all inherited dependencies are recorded
val classApis = cmap.allNonLocalClasses.toSeq
val mainClasses = cmap.mainClasses.toSeq
val inDeps = cmap.inherited.toSet
Expand Down

0 comments on commit b084eae

Please sign in to comment.