Switch to Objects.requireNonNull
[mdsal.git] / binding / mdsal-binding-generator-impl / src / main / java / org / opendaylight / mdsal / binding / generator / util / YangSchemaUtils.java
index 5386a77593848be8dea0c6ef27edb942ee0465a6..c4f670b3606c784e1eaac8a23b4f204d03b58834 100644 (file)
@@ -7,8 +7,8 @@
  */
 package org.opendaylight.mdsal.binding.generator.util;
 
-import static com.google.common.base.Preconditions.checkNotNull;
 import static com.google.common.base.Preconditions.checkState;
+import static java.util.Objects.requireNonNull;
 
 import com.google.common.base.Preconditions;
 import java.net.URI;
@@ -36,7 +36,7 @@ public final class YangSchemaUtils {
     }
 
     public static QName getAugmentationQName(final AugmentationSchemaNode augmentation) {
-        checkNotNull(augmentation, "Augmentation must not be null.");
+        requireNonNull(augmentation, "Augmentation must not be null.");
         final QName identifier = getAugmentationIdentifier(augmentation);
         if (identifier != null) {
             return identifier;