Cleanup use of Guava library
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / ReactorException.java
index b41c9b2012702055449a8faef6fb94af03fb9cad..476d790736778027ca4a879a01a107da57ecf1a0 100644 (file)
@@ -7,7 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.parser.spi.meta;
 
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 
 public class ReactorException extends Exception {
@@ -19,13 +20,13 @@ public class ReactorException extends Exception {
     public ReactorException(final ModelProcessingPhase phase, final String message, final SourceIdentifier sourceId,
             final Throwable cause) {
         super(message, cause);
-        this.phase = Preconditions.checkNotNull(phase);
+        this.phase = requireNonNull(phase);
         this.sourceIdentifier = sourceId;
     }
 
     public ReactorException(final ModelProcessingPhase phase, final String message, final SourceIdentifier sourceId) {
         super(message);
-        this.phase = Preconditions.checkNotNull(phase);
+        this.phase = requireNonNull(phase);
         this.sourceIdentifier = sourceId;
     }