Skip to content

Commit

Permalink
Fix checkstyle error (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhilash1in committed Apr 16, 2024
1 parent 32db64e commit b6b17a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static int getSerializedStringByteSize(String s) throws ArithmeticExcepti
}

// Always add 4 bytes to size as we call writeInt(bb.remaining(), "len") when writing to DataOutput
int length_descriptor_size = 4;
int lengthDescriptorSize = 4;

int size = 0;
final int len = s.length();
Expand All @@ -122,7 +122,7 @@ public static int getSerializedStringByteSize(String s) throws ArithmeticExcepti
size = Math.addExact(size, 3);
}
}
return Math.addExact(size, length_descriptor_size);
return Math.addExact(size, lengthDescriptorSize);
}

public void writeString(String s, String tag) throws IOException {
Expand Down

0 comments on commit b6b17a2

Please sign in to comment.