X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2FPersistentDataProvider.java;h=21102f1f0e368a504bef81e526762ebd79464672;hb=a0025465e4951c9a0521feb07af697ec4aa8d2aa;hp=1d676fa4a6577f7ff00fef4359fde56f485db3eb;hpb=8d8e440aa795660349714241ec64fdf4b462b378;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/PersistentDataProvider.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/PersistentDataProvider.java index 1d676fa4a6..21102f1f0e 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/PersistentDataProvider.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/PersistentDataProvider.java @@ -7,20 +7,21 @@ */ package org.opendaylight.controller.cluster; +import static java.util.Objects.requireNonNull; + import akka.japi.Procedure; +import akka.persistence.AbstractPersistentActor; import akka.persistence.SnapshotSelectionCriteria; -import akka.persistence.UntypedPersistentActor; -import com.google.common.base.Preconditions; /** * A DataPersistenceProvider implementation with persistence enabled. */ public class PersistentDataProvider implements DataPersistenceProvider { - private final UntypedPersistentActor persistentActor; + private final AbstractPersistentActor persistentActor; - public PersistentDataProvider(UntypedPersistentActor persistentActor) { - this.persistentActor = Preconditions.checkNotNull(persistentActor, "persistentActor can't be null"); + public PersistentDataProvider(AbstractPersistentActor persistentActor) { + this.persistentActor = requireNonNull(persistentActor, "persistentActor can't be null"); } @Override