Specialize Util.writeShortest() for Uint{16,32} 07/86707/5
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 5 Jan 2020 09:45:04 +0000 (10:45 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 5 Jan 2020 21:42:22 +0000 (22:42 +0100)
commit3b658310b793d4882ce59198a6d2563ce6ba114d
tree47c362bbd66e9ea1e699d422392dd1840da78a5d
parent34c351062f3abf416f91cadc77b9c008c2b11d83
Specialize Util.writeShortest() for Uint{16,32}

This adds type safety to the picture, so that we end up doing
minimal correct checks on the value supplied. It also allows us
to ditch superfluous use of ByteBufWriteUtils.

Change-Id: Iddf77acd16115ba6b342279f18e6bd1b5411de1c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/extensions/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/FSIpv6FlowLabelHandler.java
bgp/extensions/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/FSTcpFlagsHandler.java
bgp/extensions/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/handlers/NumericTwoByteOperandParser.java
bgp/extensions/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/handlers/Util.java