Maxwell-Guo commented on code in PR #2368:
URL: https://github.com/apache/cassandra/pull/2368#discussion_r1206484791
##########
src/java/org/apache/cassandra/io/util/TrackedDataInputPlus.java:
##########
@@ -49,53 +66,61 @@ public void reset(long count)
public boolean readBoolean() throws IOException
{
+ checkCanRead(1);
Review Comment:
I think it is more clear to use the size number 1/2/4/8 ,which make the code
more readable as the code below just add the number
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]