Cleanup use of Guava library
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / leafref / QNamePredicateImpl.java
index 14e99cde885ed5fd7339593130ed5f8de798c842..4bcc3b4cadf8a63c14e79d8b5e61f15d996c2f3c 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.data.impl.leafref;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import java.io.Serializable;
 import org.opendaylight.yangtools.concepts.Immutable;
 import org.opendaylight.yangtools.yang.common.QName;
@@ -19,8 +20,8 @@ class QNamePredicateImpl implements Immutable, Serializable, QNamePredicate {
     private final LeafRefPath pathKeyExpression;
 
     QNamePredicateImpl(final QName identifier, final LeafRefPath pathKeyExpression) {
-        this.identifier = Preconditions.checkNotNull(identifier, "QNamePredicate: identifier should not be null");
-        this.pathKeyExpression = Preconditions.checkNotNull(pathKeyExpression,
+        this.identifier = requireNonNull(identifier, "QNamePredicate: identifier should not be null");
+        this.pathKeyExpression = requireNonNull(pathKeyExpression,
             "QNamePredicate: pathKeyExpression should not be null");
     }