YANG revision dates mass-update
[bgpcep.git] / bgp / parser-spi / src / main / java / org / opendaylight / protocol / bgp / parser / spi / pojo / SimpleAddressFamilyRegistry.java
index 3d6be1218c5d06918d515188e572ef590c995b51..b85d5e27220462b5472b82b09eb85633a3474bac 100644 (file)
@@ -7,14 +7,17 @@
  */
 package org.opendaylight.protocol.bgp.parser.spi.pojo;
 
-import com.google.common.base.Preconditions;
+import static com.google.common.base.Preconditions.checkArgument;
+
 import org.opendaylight.protocol.bgp.parser.spi.AddressFamilyRegistry;
 import org.opendaylight.protocol.util.Values;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.AddressFamily;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.AddressFamily;
+import org.opendaylight.yangtools.concepts.Registration;
 
-final class SimpleAddressFamilyRegistry extends AbstractFamilyRegistry<AddressFamily, Integer> implements AddressFamilyRegistry {
-    AutoCloseable registerAddressFamily(final Class<? extends AddressFamily> clazz, final int number) {
-        Preconditions.checkArgument(number >= 0 && number <= Values.UNSIGNED_SHORT_MAX_VALUE);
+final class SimpleAddressFamilyRegistry extends AbstractFamilyRegistry<AddressFamily, Integer>
+        implements AddressFamilyRegistry {
+    Registration registerAddressFamily(final Class<? extends AddressFamily> clazz, final int number) {
+        checkArgument(number >= 0 && number <= Values.UNSIGNED_SHORT_MAX_VALUE);
         return super.registerFamily(clazz, number);
     }