ijuma commented on a change in pull request #9961: URL: https://github.com/apache/kafka/pull/9961#discussion_r563528446
########## File path: clients/src/test/java/org/apache/kafka/common/message/MessageTest.java ########## @@ -1006,12 +977,6 @@ private void verifyWriteSucceeds(short version, Message message) { ByteBuffer buf = ByteBuffer.allocate(size * 2); ByteBufferAccessor byteBufferAccessor = new ByteBufferAccessor(buf); message.write(byteBufferAccessor, cache, version); - ByteBuffer alt = buf.duplicate(); - alt.flip(); - StringBuilder bld = new StringBuilder(); - while (alt.hasRemaining()) { - bld.append(String.format(" %02x", alt.get())); - } Review comment: Was this meant to be used in an assert that checks the buffer content? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org