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

Refactor.

This commit is contained in:
Cedric Beust 2016-05-04 21:18:35 -08:00
parent 455f02f3be
commit cdd14df6f5

View file

@ -172,10 +172,11 @@ class TaskManager @Inject constructor(val args: Args,
//
// Reverse the always map so that tasks can be looked up.
//
val always = ArrayListMultimap.create<String, String>()
val always = ArrayListMultimap.create<String, String>().apply {
alwaysRunAfter.keySet().forEach { k ->
alwaysRunAfter[k].forEach { v ->
always.put(v, k)
put(v, k)
}
}
}