X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Futils%2FForwardingActor.java;h=64631fe42f62468f875e813295e2e8b9cbf603f7;hb=9dea3ac52a2c783f373504409806582e654d65f9;hp=fb7431f9748d1afa8dc76c3cfd2a6b7098826682;hpb=5464f50be733df1bbbe31cf05665d542d3b7c5e7;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/ForwardingActor.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/ForwardingActor.java index fb7431f974..64631fe42f 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/ForwardingActor.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/ForwardingActor.java @@ -5,22 +5,20 @@ * 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.datastore.utils; import akka.actor.ActorRef; -import akka.actor.UntypedActor; +import akka.actor.UntypedAbstractActor; -public class ForwardingActor extends UntypedActor { +public final class ForwardingActor extends UntypedAbstractActor { private final ActorRef target; - private ForwardingActor(ActorRef target) { + private ForwardingActor(final ActorRef target) { this.target = target; } @Override - public void onReceive(Object obj) throws Exception { + public void onReceive(final Object obj) { target.forward(obj, context()); } - }