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%2Fpersisted%2FShardDataTreeSnapshot.java;h=9c1622bb1bd64ce6dee60520800315b29a9e2d85;hp=7a8bd4648bad5ff0b49bc0bed74d6b47c8d55653;hb=2658d126f67512fcaac684d2ccb7197fe12f61f4;hpb=9d6b18257717db4f6f722422ee3224154150cbf7 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshot.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshot.java index 7a8bd4648b..9c1622bb1b 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshot.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshot.java @@ -12,6 +12,7 @@ import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.Optional; +import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; /** @@ -25,8 +26,8 @@ public abstract class ShardDataTreeSnapshot { // Hidden to prevent subclassing from outside of this package } - public static ShardDataTreeSnapshot deserialize(final ObjectInput in) throws IOException { - final ShardDataTreeSnapshot ret = AbstractVersionedShardDataTreeSnapshot.versionedDeserialize(in); + public static @NonNull ShardSnapshotState deserialize(final ObjectInput in) throws IOException { + final ShardSnapshotState ret = AbstractVersionedShardDataTreeSnapshot.versionedDeserialize(in); // Make sure we consume all bytes, otherwise something went very wrong final int bytesLeft = in.available(); @@ -34,7 +35,6 @@ public abstract class ShardDataTreeSnapshot { throw new IOException("Deserialization left " + bytesLeft + " in the buffer"); } - return ret; }