Correct parameter order in FSM transition-syntax example (#25439)
To match example and Scala version.
This commit is contained in:
parent
799aff28c8
commit
61f844471b
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ public class FSMDocTest extends AbstractJavaTest {
|
|||
|
||||
//#transition-syntax
|
||||
onTransition(
|
||||
matchState(Active, Idle, () -> setTimer("timeout",
|
||||
matchState(Idle, Active, () -> setTimer("timeout",
|
||||
Tick, Duration.ofSeconds(1L), true)).
|
||||
state(Active, null, () -> cancelTimer("timeout")).
|
||||
state(null, Idle, (f, t) -> log().info("entering Idle from " + f)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue