Bump versions to 4.0.0-SNAPSHOT
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / NotifyProducerRemoved.java
index 24d871edad254c538d2a0c3a241e62e13127ff9c..b93bbc6eba0275c8c3c084117f85374856eb68c4 100644 (file)
@@ -5,11 +5,9 @@
  * 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.sharding.messages;
 
 import com.google.common.annotations.Beta;
-import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableList;
 import java.io.Serializable;
 import java.util.Collection;
@@ -22,12 +20,13 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * with success/failure based on the attempt result. If the producer doesn't exist on this node report Success.
  */
 @Beta
+@Deprecated(forRemoval = true)
 public class NotifyProducerRemoved implements Serializable {
     private static final long serialVersionUID = 1L;
     private final Collection<DOMDataTreeIdentifier> subtrees;
 
     public NotifyProducerRemoved(final Collection<DOMDataTreeIdentifier> subtrees) {
-        this.subtrees = ImmutableList.copyOf(Preconditions.checkNotNull(subtrees));
+        this.subtrees = ImmutableList.copyOf(subtrees);
     }
 
     public Collection<DOMDataTreeIdentifier> getSubtrees() {