X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pcep%2Fspi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fpcep%2Fspi%2Fpojo%2FSimpleEROSubobjectRegistry.java;h=d5063cc0122cd6ed2b4bd0aa7fc22e448e7c6e4d;hb=bb1a5b0139b814666b85de460a89604bea5db0ec;hp=cd042c5472800b871c5752eaf822d9ca7c59e13f;hpb=6e760f886348592e4d1088ceeed80fa3ffbf9dc5;p=bgpcep.git diff --git a/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/pojo/SimpleEROSubobjectRegistry.java b/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/pojo/SimpleEROSubobjectRegistry.java index cd042c5472..d5063cc012 100644 --- a/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/pojo/SimpleEROSubobjectRegistry.java +++ b/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/pojo/SimpleEROSubobjectRegistry.java @@ -7,6 +7,8 @@ */ package org.opendaylight.protocol.pcep.spi.pojo; +import io.netty.buffer.ByteBuf; + import org.opendaylight.protocol.concepts.HandlerRegistry; import org.opendaylight.protocol.pcep.spi.EROSubobjectParser; import org.opendaylight.protocol.pcep.spi.EROSubobjectRegistry; @@ -33,7 +35,7 @@ public final class SimpleEROSubobjectRegistry implements EROSubobjectRegistry { } @Override - public Subobject parseSubobject(int type, byte[] buffer, boolean loose) throws PCEPDeserializerException { + public Subobject parseSubobject(final int type, final ByteBuf buffer, final boolean loose) throws PCEPDeserializerException { Preconditions.checkArgument(type >= 0 && type <= Values.UNSIGNED_SHORT_MAX_VALUE); final EROSubobjectParser parser = this.handlers.getParser(type); if (parser == null) {