From 094e21711bd90f8237da09cfc141fcf21dcba87b Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Mon, 29 May 2017 18:38:07 -0400 Subject: [PATCH] Remove deprecated ShardManagerSnapshot The original ShardManagerSnapshot was deprecated in Boron and thus should be safe to remove now. Change-Id: I643dcf6e06ad4842b69bf1ab1992b028786c83f8 Signed-off-by: Tom Pantelis --- .../datastore/ShardManagerSnapshot.java | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManagerSnapshot.java diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManagerSnapshot.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManagerSnapshot.java deleted file mode 100644 index a24f3141b0..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardManagerSnapshot.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2015 Dell 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.datastore; - -import com.google.common.base.Preconditions; -import java.io.ObjectStreamException; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import javax.annotation.Nonnull; - -/** - * Persisted data of the ShardManager. - * - * @deprecated Use {@link org.opendaylight.controller.cluster.datastore.shardmanager.ShardManagerSnapshot} instead. - * This class is scheduled for removal once persistence migration from Beryllium is no longer needed. - */ -@Deprecated -public class ShardManagerSnapshot implements Serializable { - private static final long serialVersionUID = 1L; - private final List shardList; - - public ShardManagerSnapshot(@Nonnull List shardList) { - this.shardList = new ArrayList<>(Preconditions.checkNotNull(shardList)); - } - - public List getShardList() { - return this.shardList; - } - - @Override - public String toString() { - return "ShardManagerSnapshot [ShardList = " + shardList + " ]"; - } - - private Object readResolve() throws ObjectStreamException { - return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList, - Collections.emptyMap()); - } -} -- 2.36.6