Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotate CRC32 and GZIPOutputStream. #107

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/java.base/share/classes/java/util/zip/CRC32.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import sun.nio.ch.DirectBuffer;
import jdk.internal.util.Preconditions;
import jdk.internal.vm.annotation.IntrinsicCandidate;
import org.jspecify.annotations.NullMarked;

import static java.util.zip.ZipUtils.NIO_ACCESS;

Expand All @@ -43,6 +44,7 @@
* @author David Connelly
* @since 1.1
*/
@NullMarked
public class CRC32 implements Checksum {
private int crc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import java.io.OutputStream;
import java.io.IOException;
import org.jspecify.annotations.NullMarked;

/**
* This class implements a stream filter for writing compressed data in
Expand All @@ -39,6 +40,7 @@
* @since 1.1
*
*/
@NullMarked
public class GZIPOutputStream extends DeflaterOutputStream {
/**
* CRC-32 of uncompressed data.
Expand Down
Loading