Skip to content

Commit

Permalink
refactor(analyzer): Use a more speaking name for dependencies()
Browse files Browse the repository at this point in the history
This avoids a name conflict with a variable in a following change.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Oct 19, 2023
1 parent 124d5b2 commit 68021a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzer/src/main/kotlin/managers/utils/Graph.kt
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ internal class Graph private constructor(private val nodeMap: MutableMap<Identif
)
}

return dependencies(root).mapTo(mutableSetOf()) { getPackageReference(it) }
return getDependencies(root).mapTo(mutableSetOf()) { getPackageReference(it) }
}

/**
* Return the identifiers of the direct dependencies of the package denoted by [id].
*/
private fun dependencies(id: Identifier): Set<Identifier> = nodeMap[id].orEmpty()
private fun getDependencies(id: Identifier): Set<Identifier> = nodeMap[id].orEmpty()
}

private enum class NodeColor { WHITE, GRAY, BLACK }

0 comments on commit 68021a7

Please sign in to comment.