X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2Futils%2FEchoActor.java;h=bd0c6bf4e3b9178d7145abcc034e4e1e17674310;hb=0f02b7edeb1454c1a568f0f1b050757e7503ddf7;hp=a0e01c2cf114433d72b013a4a8105dcfad1d5452;hpb=e1eca73a5ae2ffae8dd78c6fe5281cd2f45d5ef3;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/utils/EchoActor.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/utils/EchoActor.java index a0e01c2cf1..bd0c6bf4e3 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/utils/EchoActor.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/utils/EchoActor.java @@ -5,18 +5,16 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.controller.cluster.raft.utils; -import akka.actor.UntypedActor; +import akka.actor.UntypedAbstractActor; /** * The EchoActor simply responds back with the same message that it receives. */ -public class EchoActor extends UntypedActor { - +public class EchoActor extends UntypedAbstractActor { @Override - public void onReceive(Object message) throws Exception { + public void onReceive(final Object message) { getSender().tell(message, getSelf()); } }