Do not subclass YangTextSchemaSource in yang-repo-fs
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / repo / api / MissingSchemaSourceException.java
index 89138d6a57e7fdbf3772fa3a2d5c1524c7f2d539..cc9cae35529fca8462187f8926dda7c684506ce7 100644 (file)
@@ -3,12 +3,13 @@
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/eplv10.html
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.yangtools.yang.model.repo.api;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.annotations.Beta;
-import com.google.common.base.Preconditions;
 
 /**
  * Exception thrown when a the specified schema source is not available.
@@ -23,9 +24,9 @@ public class MissingSchemaSourceException extends SchemaSourceException {
         this(message, id, null);
     }
 
-    public MissingSchemaSourceException(final String s, final SourceIdentifier id, final Throwable t) {
-        super(s, t);
-        this.id = Preconditions.checkNotNull(id);
+    public MissingSchemaSourceException(final String message, final SourceIdentifier id, final Throwable cause) {
+        super(requireNonNull(message), cause);
+        this.id = requireNonNull(id);
     }
 
     public SourceIdentifier getSourceId() {