Getting rid of readerIndex handling.
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / object / PCEPNotificationObjectParser.java
index 82d0b22628f385b16727b173a0f4a36c1fe5b64c..bf095a438e83a1e338e755f5871a32b66409892c 100644 (file)
@@ -52,7 +52,7 @@ public class PCEPNotificationObjectParser extends AbstractObjectWithTlvsParser<C
         final CNotificationBuilder builder = new CNotificationBuilder();
         builder.setIgnore(header.isIgnore());
         builder.setProcessingRule(header.isProcessingRule());
-        bytes.readerIndex(bytes.readerIndex() + NT_F_OFFSET);
+        bytes.skipBytes(NT_F_OFFSET);
         builder.setType(bytes.readUnsignedByte());
         builder.setValue(bytes.readUnsignedByte());
         parseTlvs(builder, bytes.slice());