Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove unused exceptions
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft-example
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
example
/
ClientActor.java
diff --git
a/opendaylight/md-sal/sal-akka-raft-example/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java
b/opendaylight/md-sal/sal-akka-raft-example/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java
index fe25c75ae243268ae9a6602354f8f81af0804a7f..11857b9936fba6122bdaa82ccc8e7fbb069a1611 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft-example/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java
+++ b/
opendaylight/md-sal/sal-akka-raft-example/src/main/java/org/opendaylight/controller/cluster/example/ClientActor.java
@@
-17,11
+17,11
@@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ClientActor extends UntypedActor {
import org.slf4j.LoggerFactory;
public class ClientActor extends UntypedActor {
- pr
otected final Logger LOG = LoggerFactory.getLogger(getClass()
);
+ pr
ivate static final Logger LOG = LoggerFactory.getLogger(ClientActor.class
);
private final ActorRef target;
private final ActorRef target;
- public ClientActor(ActorRef target){
+ public ClientActor(ActorRef target)
{
this.target = target;
}
this.target = target;
}
@@
-29,10
+29,10
@@
public class ClientActor extends UntypedActor {
return Props.create(ClientActor.class, target);
}
return Props.create(ClientActor.class, target);
}
- @Override public void onReceive(Object message)
throws Exception
{
- if(message instanceof KeyValue) {
+ @Override public void onReceive(Object message) {
+ if
(message instanceof KeyValue) {
target.tell(message, getSelf());
target.tell(message, getSelf());
- } else if
(message instanceof KeyValueSaved)
{
+ } else if
(message instanceof KeyValueSaved)
{
LOG.info("KeyValue saved");
}
}
LOG.info("KeyValue saved");
}
}