Deprecate DOMDataTreeProducer-related classes
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / PrefixShardRemovalLookup.java
index d6a4319c0b301ea8493fab1ef2cf6a71afae6bfc..87daea2eb7dc1e1f54a7a32b6108761323630824 100644 (file)
@@ -5,10 +5,10 @@
  * 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.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
 
@@ -16,13 +16,12 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * Sent to the local {@link ShardedDataTreeActor} to initiate the lookup of the shard, once the shard is removed from
  * the system entirely the actor responds with a success.
  */
+@Deprecated(forRemoval = true)
 public class PrefixShardRemovalLookup {
-
     private final DOMDataTreeIdentifier prefix;
 
     public PrefixShardRemovalLookup(final DOMDataTreeIdentifier prefix) {
-
-        this.prefix = Preconditions.checkNotNull(prefix);
+        this.prefix = requireNonNull(prefix);
     }
 
     public DOMDataTreeIdentifier getPrefix() {
@@ -31,8 +30,6 @@ public class PrefixShardRemovalLookup {
 
     @Override
     public String toString() {
-        return "PrefixShardRemovalLookup{"
-                + "prefix=" + prefix
-                + '}';
+        return "PrefixShardRemovalLookup{" + "prefix=" + prefix + '}';
     }
 }