Specialize Util.writeShortest() for Uint{16,32}
[bgpcep.git] / bgp / extensions / flowspec / src / main / java / org / opendaylight / protocol / bgp / flowspec / FSTcpFlagsHandler.java
index e84d00314739024488b30f13d75d4517501115f9..f54340d2f07eed8986ea65f8179095841182cd0b 100644 (file)
@@ -35,7 +35,7 @@ public final class FSTcpFlagsHandler implements FlowspecTypeParser, FlowspecType
         for (final Iterator<TcpFlags> it = flags.iterator(); it.hasNext(); ) {
             final TcpFlags flag = it.next();
             final ByteBuf flagsBuf = Unpooled.buffer();
-            Util.writeShortest(flag.getValue().toJava(), flagsBuf);
+            Util.writeShortest(flag.getValue(), flagsBuf);
             BitmaskOperandParser.INSTANCE.serialize(flag.getOp(), flagsBuf.readableBytes(),
                     !it.hasNext(), nlriByteBuf);
             nlriByteBuf.writeBytes(flagsBuf);