Hide ShardManagerSnapshot 62/96762/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Jul 2021 10:28:41 +0000 (12:28 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 1 Jul 2021 10:28:41 +0000 (12:28 +0200)
This class is scheduled for removal. Hide it before removing it.

Change-Id: I902d33da14411ec44429de5474d953adc9722dea
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerSnapshot.java

index fdec785b7d787c15dcce9ce051551246208c2cfd..b99077980555b8730e5c2d1ec832160445890797 100644 (file)
@@ -12,36 +12,22 @@ import java.io.Serializable;
 import java.util.List;
 import org.eclipse.jdt.annotation.NonNull;
 
 import java.util.List;
 import org.eclipse.jdt.annotation.NonNull;
 
-
 /**
  * Persisted data of the ShardManager.
  *
  * @deprecated Use {@link org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot} instead.
  */
 /**
  * Persisted data of the ShardManager.
  *
  * @deprecated Use {@link org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot} instead.
  */
+// FIXME: 5.0.0: remove this class
 @Deprecated(forRemoval = true)
 @Deprecated(forRemoval = true)
-public final class ShardManagerSnapshot implements Serializable {
+final class ShardManagerSnapshot implements Serializable {
     private static final long serialVersionUID = 1L;
     private static final long serialVersionUID = 1L;
+
     private final List<String> shardList;
 
     ShardManagerSnapshot(final @NonNull List<String> shardList) {
         this.shardList = ImmutableList.copyOf(shardList);
     }
 
     private final List<String> shardList;
 
     ShardManagerSnapshot(final @NonNull List<String> shardList) {
         this.shardList = ImmutableList.copyOf(shardList);
     }
 
-    public List<String> getShardList() {
-        return this.shardList;
-    }
-
-    /**
-     * Creates a ShardManagerSnapshot.
-     *
-     * @deprecated This method is for migration only and should me removed once
-     *             org.opendaylight.controller.cluster.datastore.ShardManagerSnapshot is removed.
-     */
-    @Deprecated
-    public static ShardManagerSnapshot forShardList(final @NonNull List<String> shardList) {
-        return new ShardManagerSnapshot(shardList);
-    }
-
     private Object readResolve() {
         return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList);
     }
     private Object readResolve() {
         return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList);
     }