Java style accessors for AbstractFSM #22592

This commit is contained in:
Johan Andrén 2017-03-17 10:18:15 +01:00
parent 363ca39f52
commit 07e88300bc
24 changed files with 85 additions and 58 deletions

View file

@ -398,7 +398,7 @@ public class ActorDocTest extends AbstractJavaTest {
getSender().tell("service unavailable, shutting down", getSelf())
)
.match(Terminated.class, t -> t.actor().equals(worker), t ->
getContext().stop(self())
getContext().stop(getSelf())
)
.build();
}
@ -716,7 +716,7 @@ public class ActorDocTest extends AbstractJavaTest {
getContext().become(active(ref));
})
.match(ActorIdentity.class, id -> !id.getActorRef().isPresent(), id -> {
getContext().stop(self());
getContext().stop(getSelf());
})
.build();
}
@ -724,7 +724,7 @@ public class ActorDocTest extends AbstractJavaTest {
final AbstractActor.Receive active(final ActorRef another) {
return receiveBuilder()
.match(Terminated.class, t -> t.actor().equals(another), t ->
getContext().stop(self())
getContext().stop(getSelf())
)
.build();
}