Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Simplify code using Java 8 features
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
utils
/
ForwardingActor.java
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 f9c3f3e5359d97973835bfef25dda63819064e67..790d6443a07c49204066867d8240c13d45506ca5 100644
(file)
--- 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
@@
-11,16
+11,16
@@
package org.opendaylight.controller.cluster.datastore.utils;
import akka.actor.ActorRef;
import akka.actor.UntypedActor;
import akka.actor.ActorRef;
import akka.actor.UntypedActor;
-public
class ForwardingActor extends UntypedActor
{
+public
final class ForwardingActor extends UntypedActor
{
private final ActorRef target;
private final ActorRef target;
- private ForwardingActor(ActorRef target) {
+ private ForwardingActor(
final
ActorRef target) {
this.target = target;
}
@Override
this.target = target;
}
@Override
- public void onReceive(
Object o) throws Exception
{
- target.forward(o, context());
+ public void onReceive(
final Object obj)
{
+ target.forward(o
bj
, context());
}
}
}
}