Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / util / src / main / java / org / opendaylight / protocol / util / PCEPHexDumpParser.java
index 50011e4c9c0575520a5e4aee09512ff467df580b..cbcbf8c8080f0f31eaec5cc4857ae5cf5daaa9b5 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.protocol.util;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.Preconditions;
 import com.google.common.collect.Lists;
 import com.google.common.io.BaseEncoding;
@@ -42,7 +44,7 @@ public final class PCEPHexDumpParser {
     }
 
     public static List<byte[]> parseMessages(final InputStream is) throws IOException {
-        Preconditions.checkNotNull(is);
+        requireNonNull(is);
         try (InputStreamReader isr = new InputStreamReader(is, "UTF-8")) {
             return parseMessages(CharStreams.toString(isr));
         }