Bug-731: Fixed few major Sonar warnings
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / RROSubobjectParser.java
index 1d1dd39509ed22230c94262036a8f5d61aa2bec2..942bbc5478ebfaf94190cc75acb05d3bb9f0f317 100644 (file)
@@ -7,8 +7,10 @@
  */
 package org.opendaylight.protocol.pcep.spi;
 
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.reported.route.object.rro.Subobjects;
+import io.netty.buffer.ByteBuf;
+
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.reported.route.object.rro.Subobject;
 
 public interface RROSubobjectParser {
-       public Subobjects parseSubobject(final byte[] buffer) throws PCEPDeserializerException;
+    Subobject parseSubobject(ByteBuf buffer) throws PCEPDeserializerException;
 }