Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
carueda committed Sep 13, 2020
1 parent 6370de0 commit 7b4f1f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/tscfg/ModelBuilder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@ class ModelBuilder(assumeAllRequired: Boolean = false) {
rootNode: SharedObjectStruct
): Vector[SharedObjectStruct] = {
val innerNode = graph.nodes.get(rootNode)
// TODO :283: method toIterator in trait IterableOnceOps is deprecated (since 2.13.0): Use .iterator instead of .toIterator
Vector(rootNode) ++ graph.innerEdgeTraverser(innerNode).toIterator.map(_.edge._2.toOuter).toVector.distinct
Vector(rootNode) ++ graph.innerEdgeTraverser(innerNode).map(_.edge._2.toOuter).toVector.distinct
}

/**
Expand Down

0 comments on commit 7b4f1f7

Please sign in to comment.