Skip to content

Commit

Permalink
collapsing multiple lines into 1
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Jan 9, 2025
1 parent 6e30ef7 commit 3de75a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ public static Hashes getBlockHashes(@NonNull List<BlockItemUnparsed> blockItems)
}
}

inputHashes.flip();
outputHashes.flip();

return new Hashes(inputHashes, outputHashes);
return new Hashes(inputHashes.flip(), outputHashes.flip());
}

/**
Expand All @@ -135,8 +132,8 @@ public static ByteBuffer getBlockItemHash(@NonNull BlockItemUnparsed blockItemUn
ByteBuffer buffer = ByteBuffer.allocate(HASH_SIZE);
buffer.put(digest.digest(
BlockItemUnparsed.PROTOBUF.toBytes(blockItemUnparsed).toByteArray()));
buffer.flip();
return buffer;

return buffer.flip();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.hedera.block.server.verification.VerificationResult;
import com.hedera.hapi.block.BlockItemUnparsed;
import edu.umd.cs.findbugs.annotations.NonNull;

import java.util.List;
import java.util.concurrent.CompletableFuture;

Expand Down

0 comments on commit 3de75a6

Please sign in to comment.