Squash more sonar warnings
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / EROSubobjectHandlerRegistry.java
index f50b8baced77dd99d9209100afe3bfb23f720334..f70c72aa37d09ecff7323509f5128612c8fe8c4f 100644 (file)
@@ -7,15 +7,9 @@
  */
 package org.opendaylight.protocol.pcep.spi;
 
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.explicit.route.object.Subobjects;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev130820.CSubobject;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev130820.basic.explicit.route.subobjects.SubobjectType;
 
 public interface EROSubobjectHandlerRegistry {
-       public AutoCloseable registerSubobjectParser(int subobjectType, EROSubobjectParser parser);
-
-       public EROSubobjectParser getSubobjectParser(int subobjectType);
-
-       public AutoCloseable registerSubobjectSerializer(Class<? extends CSubobject> subobjectClass, EROSubobjectSerializer serializer);
-
-       public EROSubobjectSerializer getSubobjectSerializer(Subobjects subobject);
+       EROSubobjectParser getSubobjectParser(int subobjectType);
+       EROSubobjectSerializer getSubobjectSerializer(SubobjectType subobject);
 }