* 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 static java.util.Objects.requireNonNull;
+
import com.google.common.annotations.Beta;
-import com.google.common.base.Preconditions;
import java.io.Serializable;
import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
* create the required frontend/backend shards.
*/
@Beta
+@Deprecated(forRemoval = true)
public class LookupPrefixShard implements Serializable {
private static final long serialVersionUID = 1L;
private final DOMDataTreeIdentifier prefix;
public LookupPrefixShard(final DOMDataTreeIdentifier prefix) {
- this.prefix = Preconditions.checkNotNull(prefix);
+ this.prefix = requireNonNull(prefix);
}
public DOMDataTreeIdentifier getPrefix() {