Migrate from YangInstanceIdentifier.EMPTY
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / utils / ForwardingActor.java
index fb7431f9748d1afa8dc76c3cfd2a6b7098826682..64631fe42f62468f875e813295e2e8b9cbf603f7 100644 (file)
@@ -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());
     }
-
 }