Cleanup use of Guava library
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / OperationFailedException.java
index cbfee5bc8bc21ede423a0f7303924f4ac1b3e35a..9049e32e59b2c3d26e2ed15983b7fb70af39bb83 100644 (file)
@@ -8,8 +8,9 @@
 
 package org.opendaylight.yangtools.yang.common;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.MoreObjects;
-import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableList;
 import java.util.Arrays;
 import java.util.List;
@@ -47,7 +48,7 @@ public class OperationFailedException extends Exception {
      */
     public OperationFailedException(final String message, final Throwable cause,
                                     final RpcError... errors) {
-        super(Preconditions.checkNotNull(message), cause);
+        super(requireNonNull(message), cause);
 
         if (errors != null && errors.length > 0) {
             errorList = ImmutableList.copyOf(Arrays.asList(errors));