X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fexample%2FClientActor.java;h=8022e721579e0d66c8fff33d2955f6197f6607fb;hb=6b9ec89c77e614b44dbd01de77a45ee8d9e6d0ec;hp=2560f165882260bac63ce232b39218621f5c0015;hpb=6d73d16b194435ea1ea783a37d1b51fc1f558a1f;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java index 2560f16588..8022e72157 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java @@ -13,7 +13,6 @@ import akka.actor.Props; import akka.actor.UntypedActor; import akka.event.Logging; import akka.event.LoggingAdapter; -import akka.japi.Creator; import org.opendaylight.controller.cluster.example.messages.KeyValue; import org.opendaylight.controller.cluster.example.messages.KeyValueSaved; @@ -27,13 +26,8 @@ public class ClientActor extends UntypedActor { this.target = target; } - public static Props props(final ActorRef target){ - return Props.create(new Creator(){ - - @Override public ClientActor create() throws Exception { - return new ClientActor(target); - } - }); + public static Props props(final ActorRef target) { + return Props.create(ClientActor.class, target); } @Override public void onReceive(Object message) throws Exception {