/*
 * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

package org.opendaylight.controller.cluster.raft.base.messages;

import org.opendaylight.controller.cluster.raft.Snapshot;

public class SendInstallSnapshot {
    private final Snapshot snapshot;

    public SendInstallSnapshot(Snapshot snapshot) {
        this.snapshot = snapshot;
    }

    public Snapshot getSnapshot() {
        return snapshot;
    }
}

@@ -378,66 +378,304 @@
 ort 
-org.opendaylight.controller.cluster.raft.Snapshot;%0A%0Apublic
+com.google.common.base.Preconditions;%0Aimport javax.annotation.Nonnull;%0Aimport org.opendaylight.controller.cluster.raft.Snapshot;%0A%0A/**%0A * Internal message sent from the SnapshotManager to its associated leader. The leader is expected to apply the%0A * %7B@link Snapshot%7D to its state.%0A */%0Apublic final
  cla
@@ -768,16 +768,25 @@
 napshot(
+@Nonnull 
 Snapshot
@@ -822,24 +822,51 @@
 pshot = 
+Preconditions.checkNotNull(
 snapshot
 ;%0A    %7D%0A
@@ -849,32 +849,33 @@
 NotNull(snapshot
+)
 ;%0A    %7D%0A%0A    pub
@@ -866,24 +866,33 @@
 ;%0A    %7D%0A%0A   
+ 
+@Nonnull
  public Snap

Add SendInstallSnapshot javadoc