Fix compilation warnings.

This commit is contained in:
Benoit Marty
2023-05-23 11:56:08 +02:00
parent 8beb7310ef
commit f1bd767112
3 changed files with 4 additions and 3 deletions
@@ -60,6 +60,7 @@ class StateMachine<Event : Any, State : Any>(
currentStateConfig?.onEnter?.invoke(nextState)
}
@Suppress("UNCHECKED_CAST")
private fun <E : Event> findMatchingRoute(event: E): StateMachineRoute<E, State, State>? {
val routesForEvent = routes.filter { it.eventType.isInstance(event) }