maedhroz commented on code in PR #2267:
URL: https://github.com/apache/cassandra/pull/2267#discussion_r1167286657
##########
src/java/org/apache/cassandra/utils/ByteBufferUtil.java:
##########
@@ -866,4 +869,27 @@ private static boolean startsWith(ByteBuffer src,
ByteBuffer prefix, int offset)
return true;
}
-}
+
+ /**
+ * Returns true if the buffer at the current position in the input matches
given buffer.
+ * If true, the input is positioned at the end of the consumed buffer.
+ * If false, the position of the input is undefined.
+ * <p>
+ * The matched buffer is unchanged
+ *
+ * @throws IOException
Review Comment:
nit: Unless we specifically want to document why we'd throw IOE, I guess we
can remove this, as it's already in the method signature.
--
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]