Bump mdsal to 5.0.2
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / pojo / SimpleVendorInformationTlvRegistry.java
index 46d2fde9b7f27735123b689c4bc14696a4b1881c..b5da4d22826e9d0c69089ce999f77f66ecf047d2 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.protocol.pcep.spi.pojo;
 
-import com.google.common.primitives.Ints;
 import io.netty.buffer.ByteBuf;
 import java.util.Optional;
 import org.opendaylight.protocol.concepts.HandlerRegistry;
@@ -27,7 +26,7 @@ public class SimpleVendorInformationTlvRegistry implements VendorInformationTlvR
 
     public Registration registerVendorInformationTlvParser(final EnterpriseNumber enterpriseNumber,
             final TlvParser parser) {
-        return this.handlers.registerParser(Ints.checkedCast(enterpriseNumber.getValue()), parser);
+        return this.handlers.registerParser(enterpriseNumber.getValue().intValue(), parser);
     }
 
     public Registration registerVendorInformationTlvSerializer(
@@ -38,7 +37,7 @@ public class SimpleVendorInformationTlvRegistry implements VendorInformationTlvR
     @Override
     public Optional<VendorInformationTlv> parseVendorInformationTlv(final EnterpriseNumber enterpriseNumber,
             final ByteBuf buffer) throws PCEPDeserializerException {
-        final TlvParser parser = this.handlers.getParser(Ints.checkedCast(enterpriseNumber.getValue()));
+        final TlvParser parser = this.handlers.getParser(enterpriseNumber.getValue().intValue());
         if (parser == null) {
             return Optional.empty();
         }