Replace Preconditions.CheckNotNull per RequireNonNull
[bgpcep.git] / bgp / parser-impl / src / main / java / org / opendaylight / protocol / bgp / parser / impl / message / update / AsPathAttributeParser.java
index c93c0f7e361cbd1c8a1af4595eeab12dd70c12c8..b5eee3522163abd451d584c352887a0137ca5ec5 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.protocol.bgp.parser.impl.message.update;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.base.Preconditions;
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.Unpooled;
@@ -42,7 +44,7 @@ public final class AsPathAttributeParser implements AttributeParser, AttributeSe
     private static final AsPath EMPTY = new AsPathBuilder().setSegments(Collections.emptyList()).build();
 
     public AsPathAttributeParser(final ReferenceCache refCache) {
-        this.refCache = Preconditions.checkNotNull(refCache);
+        this.refCache = requireNonNull(refCache);
     }
 
     /**