Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Jan 31, 2024
1 parent 0669a66 commit 4036a3a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.bookkeeper.proto.checksum;

import static org.junit.jupiter.api.Assertions.assertArrayEquals;

import com.scurrilous.circe.checksum.IntHash;
import com.scurrilous.circe.checksum.Java8IntHash;
import com.scurrilous.circe.checksum.Java9IntHash;
Expand Down Expand Up @@ -89,7 +90,8 @@ private static byte[] createTestPayLoad(int payloadSize) {
static class TestIntHashDigestManager extends DigestManager {
private final IntHash intHash;

public TestIntHashDigestManager(IntHash intHash, long ledgerId, boolean useV2Protocol, ByteBufAllocator allocator) {
public TestIntHashDigestManager(IntHash intHash, long ledgerId, boolean useV2Protocol,
ByteBufAllocator allocator) {
super(ledgerId, useV2Protocol, allocator);
this.intHash = intHash;
}
Expand Down Expand Up @@ -140,7 +142,8 @@ private void assertDigestAndPackageMatchesReference(IntHash intHash, ByteBuf pay
byte[] output2 = computeDigestAndPackageForSending(intHash, payload2);
assertArrayEquals(referenceOutput, output2);

ByteBuf payload3 = wrapWithPrefixAndMultipleCompositeByteBufWithReaderIndexStateAndMultipleLayersOfDuplicate(payload.retainedDuplicate());
ByteBuf payload3 = wrapWithPrefixAndMultipleCompositeByteBufWithReaderIndexStateAndMultipleLayersOfDuplicate(
payload.retainedDuplicate());
// this validates that the readable bytes in payload3 match the TEST_PAYLOAD content
assertArrayEquals(ByteBufUtil.getBytes(payload3.duplicate()), testPayLoad);

Expand Down

0 comments on commit 4036a3a

Please sign in to comment.