node: use star projection instead of useless transform to hide type param

This commit is contained in:
Andras Slemmer 2016-06-09 16:29:03 +01:00
parent 5525487169
commit fe83e41f52

View File

@ -214,8 +214,8 @@ abstract class Simulation(val runAsync: Boolean,
}
}
val networkInitialisationFinished: ListenableFuture<Unit> =
Futures.transform(Futures.allAsList(network.nodes.map { it.networkMapRegistrationFuture }), Function { })
val networkInitialisationFinished: ListenableFuture<*> =
Futures.allAsList(network.nodes.map { it.networkMapRegistrationFuture })
fun start(): ListenableFuture<Unit> {
network.startNodes()
@ -250,4 +250,4 @@ abstract class Simulation(val runAsync: Boolean,
}
next(0, 1)
}
}
}