Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / flowspec / src / main / java / org / opendaylight / protocol / bgp / flowspec / FSIpProtocolHandler.java
index 6eed12d8699030eb9bbded62acbba71e07bf44b3..c866cd210efda5e010d4e02894b8c566fa3d573f 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.protocol.bgp.flowspec;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.Preconditions;
 import io.netty.buffer.ByteBuf;
 import java.util.ArrayList;
@@ -33,7 +35,7 @@ public final class FSIpProtocolHandler implements FlowspecTypeParser, FlowspecTy
 
     @Override
     public FlowspecType parseType(ByteBuf buffer) {
-        Preconditions.checkNotNull(buffer, "input buffer is null, missing data to parse.");
+        requireNonNull(buffer, "input buffer is null, missing data to parse.");
         return new ProtocolIpCaseBuilder().setProtocolIps(parseProtocolIp(buffer)).build();
     }