1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Use a hash set.

This commit is contained in:
Cedric Beust 2016-05-03 01:58:45 -08:00
parent 084a56e004
commit 0b09f5f1e8

View file

@ -164,7 +164,7 @@ class TaskManager @Inject constructor(val args: Args,
if (task != null && accept(task)) {
val toProcess = arrayListOf(task)
val seen = hashSetOf<String>()
val newToProcess = arrayListOf<T>()
val newToProcess = hashSetOf<T>()
fun maybeAddEdge(task: T, mm: Multimap<String, String>, isDependency: Boolean,
reverseEdges: Boolean = false) : Boolean {