final class TeLspAttributesParser {
private static final Logger LOG = LoggerFactory.getLogger(TeLspAttributesParser.class);
- private static final int MAGIC_NUMBER = 99; // TODO: TBD BY IANA
+ // TODO: TBD BY IANA
+ private static final int MAGIC_NUMBER = 99;
+
+ private TeLspAttributesParser() {
+ throw new UnsupportedOperationException();
+ }
public static LinkStateAttribute parseTeLspAttributes(final RSVPTeObjectRegistry registry, final ByteBuf attributes) throws BGPParsingException {
- TeLspAttributesBuilder builder = new TeLspAttributesBuilder();
+ final TeLspAttributesBuilder builder = new TeLspAttributesBuilder();
LOG.trace("Initiated parsing TE LSP Objects.");
while (attributes.isReadable()) {
final int length = attributes.readUnsignedShort();
final ByteBuf value = attributes.readSlice(length);
try {
addObject(builder, registry.parseRSPVTe(classNum, cType, value));
- } catch (RSVPParsingException e) {
+ } catch (final RSVPParsingException e) {
+ LOG.debug("Parsering TE LSP Object error. class number: {} cType: {} value: {}", classNum, cType, value, e);
throw new BGPParsingException(e.getMessage());
}
}
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.basic.explicit.route.subobjects.subobject.type.AsNumberCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.basic.explicit.route.subobjects.subobject.type.as.number._case.AsNumberBuilder;
-public class AsNumberCaseParser {
+public final class AsNumberCaseParser {
private static final int CONTENT_LENGTH = 2;
private AsNumberCaseParser() {