Migrate boolean getters
[bgpcep.git] / bgp / extensions / flowspec / src / main / java / org / opendaylight / protocol / bgp / flowspec / FSSourcePortHandler.java
index b9fcf1f73f05d2b12e3cefbdc67ffbf2c7272a23..6fdf88e105ec2b558b91f0c5ad0fdbd2aaf2d53e 100644 (file)
@@ -30,14 +30,14 @@ public final class FSSourcePortHandler implements FlowspecTypeParser, FlowspecTy
     public static final int SOURCE_PORT_VALUE = 6;
 
     @Override
-    public void serializeType(FlowspecType fsType, ByteBuf output) {
+    public void serializeType(final FlowspecType fsType, final ByteBuf output) {
         Preconditions.checkArgument(fsType instanceof SourcePortCase, "SourcePortCase class is mandatory!");
         output.writeByte(SOURCE_PORT_VALUE);
         NumericTwoByteOperandParser.INSTANCE.serialize(((SourcePortCase) fsType).getSourcePorts(), output);
     }
 
     @Override
-    public FlowspecType parseType(ByteBuf buffer) {
+    public FlowspecType parseType(final ByteBuf buffer) {
         requireNonNull(buffer, "input buffer is null, missing data to parse.");
         return new SourcePortCaseBuilder().setSourcePorts(parseSourcePort(buffer)).build();
     }
@@ -53,7 +53,7 @@ public final class FSSourcePortHandler implements FlowspecTypeParser, FlowspecTy
             builder.setOp(op);
             final short length = AbstractOperandParser.parseLength(b);
             builder.setValue(ByteArray.bytesToInt(ByteArray.readBytes(nlri, length)));
-            end = op.isEndOfList();
+            end = op.getEndOfList();
             ports.add(builder.build());
         }
         return ports;