Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix modernization issues
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
LeaderLocalDelegateFactory.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
index b6fb127714f07b8529de25bc1760dd7c16532f91..af57577c4d37bc08eb5ebd7df92bdd2df2663b31 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java
@@
-7,11
+7,12
@@
*/
package org.opendaylight.controller.cluster.datastore;
*/
package org.opendaylight.controller.cluster.datastore;
+import static java.util.Objects.requireNonNull;
+
import akka.actor.ActorPath;
import akka.actor.ActorRef;
import akka.actor.ActorSelection;
import akka.actor.Props;
import akka.actor.ActorPath;
import akka.actor.ActorRef;
import akka.actor.ActorSelection;
import akka.actor.Props;
-import com.google.common.base.Preconditions;
/**
* Base class for factories instantiating delegates which are local to the
/**
* Base class for factories instantiating delegates which are local to the
@@
-24,7
+25,7
@@
abstract class LeaderLocalDelegateFactory<M> {
private final Shard shard;
protected LeaderLocalDelegateFactory(final Shard shard) {
private final Shard shard;
protected LeaderLocalDelegateFactory(final Shard shard) {
- this.shard =
Preconditions.checkNot
Null(shard);
+ this.shard =
requireNon
Null(shard);
}
protected final ActorRef getSelf() {
}
protected final ActorRef getSelf() {
@@
-47,11
+48,11
@@
abstract class LeaderLocalDelegateFactory<M> {
return shard.getContext().actorOf(props);
}
return shard.getContext().actorOf(props);
}
- protected final ActorSelection selectActor(ActorRef ref) {
+ protected final ActorSelection selectActor(
final
ActorRef ref) {
return shard.getContext().system().actorSelection(ref.path());
}
return shard.getContext().system().actorSelection(ref.path());
}
- protected final ActorSelection selectActor(ActorPath path) {
+ protected final ActorSelection selectActor(
final
ActorPath path) {
return shard.getContext().system().actorSelection(path);
}
return shard.getContext().system().actorSelection(path);
}