Skip to content

Commit

Permalink
[Java] Use Agrona Checksum classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Dec 18, 2024
1 parent d7cb2cf commit 9f61319
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 272 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
package io.aeron.archive.checksum;

import org.agrona.Strings;
import org.agrona.checksum.Crc32;
import org.agrona.checksum.Crc32c;

/**
* Factory and common methods for working with {@link Checksum} instances.
*/
public final class Checksums
{
private static final Checksum CRC_32 = Crc32.INSTANCE;
private static final Checksum CRC_32C = Crc32c.INSTANCE;
private static final Checksum CRC_32 = Crc32.INSTANCE::compute;
private static final Checksum CRC_32C = Crc32c.INSTANCE::compute;

/**
* Returns an instance of {@link Checksum} that computes CRC-32 checksums.
Expand Down
68 changes: 0 additions & 68 deletions aeron-archive/src/main/java/io/aeron/archive/checksum/Crc32.java

This file was deleted.

85 changes: 0 additions & 85 deletions aeron-archive/src/main/java/io/aeron/archive/checksum/Crc32c.java

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 9f61319

Please sign in to comment.