Checkstyle: fix issues and enforce on lisp-proto
[lispflowmapping.git] / mappingservice / lisp-proto / src / main / java / org / opendaylight / lispflowmapping / lisp / serializer / MappingRecordSerializer.java
index 8174608b0b80b9a8f883b76e50528ebbbc646c78..7d9c6a29ecb9b6b52d1e5b738988232f925a1042 100644 (file)
@@ -40,9 +40,9 @@ public final class MappingRecordSerializer {
     public MappingRecordBuilder deserializeToBuilder(ByteBuffer buffer) {
         MappingRecordBuilder builder = new MappingRecordBuilder();
         builder.setRecordTtl(buffer.getInt());
-        byte locatorCount = (byte) ByteUtil.getUnsignedByte(buffer);
-        short maskLength = ((short) ByteUtil.getUnsignedByte(buffer));
-        byte actionAndAuthoritative = buffer.get();
+        final byte locatorCount = (byte) ByteUtil.getUnsignedByte(buffer);
+        final short maskLength = ((short) ByteUtil.getUnsignedByte(buffer));
+        final byte actionAndAuthoritative = buffer.get();
         Action act = Action.forValue(actionAndAuthoritative >> 5);
         if (act == null) {
             act = Action.NoAction;