Cleanup use of Guava library
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / source / ImplicitSubstatement.java
index 40de49f021b7e01feac6ed5d554135ce86fdf81d..c1455e0d5c8a57bc89154a0b6c484770bcfdb257 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.yangtools.yang.parser.spi.source;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.annotations.Beta;
-import com.google.common.base.Preconditions;
 import org.opendaylight.yangtools.yang.model.api.meta.StatementSource;
 
 /**
@@ -23,7 +24,7 @@ public final class ImplicitSubstatement implements StatementSourceReference {
     private final StatementSourceReference parentRef;
 
     private ImplicitSubstatement(final StatementSourceReference parentRef) {
-        this.parentRef = Preconditions.checkNotNull(parentRef);
+        this.parentRef = requireNonNull(parentRef);
     }
 
     /**