Skip to content

Commit

Permalink
Annotate CRC32 and GZIPOutputStream.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpovirk committed Nov 12, 2024
1 parent 457b292 commit fe63dc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit fe63dc4

Please sign in to comment.