Skip to content

Commit

Permalink
PersistentFSMBase - matchEvent API bug fix
Browse files Browse the repository at this point in the history
Parameter "predicate" not being propagated to created builder.
(cherry picked from commit 80019db)
  • Loading branch information
IanGrima authored and patriknw committed Feb 10, 2017
1 parent cc57819 commit 2fda71d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ abstract class AbstractPersistentFSMBase[S, D, E] extends PersistentFSMBase[S, D
* @return the builder with the case statement added
*/
final def matchEvent[ET, DT <: D](eventType: Class[ET], dataType: Class[DT], predicate: TypedPredicate2[ET, DT], apply: Apply2[ET, DT, State]): FSMStateFunctionBuilder[S, D, E] =
new FSMStateFunctionBuilder[S, D, E]().event(eventType, dataType, apply)
new FSMStateFunctionBuilder[S, D, E]().event(eventType, dataType, predicate, apply)

/**
* Create an [[akka.japi.pf.FSMStateFunctionBuilder]] with the first case statement set.
Expand Down

0 comments on commit 2fda71d

Please sign in to comment.