Apply modernizations
[netconf.git] / restconf / restconf-common / src / main / java / org / opendaylight / restconf / common / patch / PatchContext.java
index 5e867c0838a995f275ba3275b786ea8054e3ecf3..bf1c7a2c32e0080b8afe68c2fb5e7360d28af27e 100644 (file)
@@ -5,25 +5,24 @@
  * 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.restconf.common.patch;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import java.util.List;
 import org.opendaylight.restconf.common.context.InstanceIdentifierContext;
 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
 
 public class PatchContext {
-
     private final InstanceIdentifierContext<? extends SchemaNode> context;
     private final List<PatchEntity> data;
     private final String patchId;
 
     public PatchContext(final InstanceIdentifierContext<? extends SchemaNode> context,
                         final List<PatchEntity> data, final String patchId) {
-        this.context = Preconditions.checkNotNull(context);
-        this.data = Preconditions.checkNotNull(data);
-        this.patchId = Preconditions.checkNotNull(patchId);
+        this.context = requireNonNull(context);
+        this.data = requireNonNull(data);
+        this.patchId = requireNonNull(patchId);
     }
 
     public InstanceIdentifierContext<? extends SchemaNode> getInstanceIdentifierContext() {