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 73de53e commit 6370de0
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 @@ -291,8 +291,7 @@ class ModelBuilder(assumeAllRequired: Boolean = false) {
*/
def getRootNodes(graph: Graph[SharedObjectStruct, DiEdge]): Set[SharedObjectStruct] = {
val childNodes = graph.edges.map(_.edge._2)
// TODO :294: method -- in trait SetOps is deprecated (since 2.13.0): Consider requiring an immutable Set
(graph.nodes -- childNodes).map(_.toOuter)
(graph.nodes.toSet -- childNodes).map(_.toOuter)
}

private def buildAnnType(childType: model.Type, effOptional: Boolean, effDefault: Option[String],
Expand Down

0 comments on commit 6370de0

Please sign in to comment.