X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FLeaderLocalDelegateFactory.java;h=af57577c4d37bc08eb5ebd7df92bdd2df2663b31;hp=3f927736b5a8eaf5ee1be0e355a43f616fb2d9a1;hb=ccca30bbb1545643c427fc59c23329c5d49f8d4b;hpb=3d460a8bcbc24eeb969319feb9c7bf16bff496c1 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 3f927736b5..af57577c4d 100644 --- 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,25 +7,25 @@ */ 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 com.google.common.base.Preconditions; /** * Base class for factories instantiating delegates which are local to the * shard leader. * - * delegate type - * message type - * initial state type + * @param delegate type + * @param message type */ -abstract class LeaderLocalDelegateFactory extends DelegateFactory { +abstract class LeaderLocalDelegateFactory { private final Shard shard; protected LeaderLocalDelegateFactory(final Shard shard) { - this.shard = Preconditions.checkNotNull(shard); + this.shard = requireNonNull(shard); } protected final ActorRef getSelf() { @@ -48,20 +48,21 @@ abstract class LeaderLocalDelegateFactory extends DelegateFactory