Code Cleanup: unused var and imports
[bgpcep.git] / pcep / spi / src / main / java / org / opendaylight / protocol / pcep / spi / MessageParser.java
index e5db62769c23ee959c313a70284288721fd49cf5..0cfa3b4c1e93c887177bac6cc55153cd66213577 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.protocol.pcep.spi;
 
-import org.opendaylight.protocol.pcep.PCEPDeserializerException;
-import org.opendaylight.protocol.pcep.PCEPDocumentedException;
+import io.netty.buffer.ByteBuf;
+
+import java.util.List;
+
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message;
 
 public interface MessageParser {
-       public Message parseMessage(byte[] buffer) throws PCEPDeserializerException, PCEPDocumentedException;
+    Message parseMessage(final ByteBuf buffer, final List<Message> errors) throws PCEPDeserializerException;
 }