|
25 | 25 |
|
26 | 26 | package java.util.zip;
|
27 | 27 |
|
28 |
| -import org.checkerframework.checker.index.qual.IndexOrHigh; |
29 |
| -import org.checkerframework.checker.index.qual.Positive; |
30 |
| -import org.checkerframework.checker.signedness.qual.PolySigned; |
31 |
| -import org.checkerframework.framework.qual.AnnotatedFor; |
32 |
| - |
33 | 28 | import java.io.FilterOutputStream;
|
34 | 29 | import java.io.IOException;
|
35 | 30 | import java.io.OutputStream;
|
36 | 31 | import java.util.Objects;
|
| 32 | +import org.jspecify.annotations.NullMarked; |
37 | 33 |
|
38 | 34 | /**
|
39 | 35 | * Implements an output stream filter for uncompressing data stored in the
|
|
46 | 42 | * @see DeflaterInputStream
|
47 | 43 | * @see DeflaterOutputStream
|
48 | 44 | */
|
49 |
| - |
50 |
| -@AnnotatedFor({"index", "signedness"}) |
| 45 | +@NullMarked |
51 | 46 | public class InflaterOutputStream extends FilterOutputStream {
|
52 | 47 | /** Decompressor for this stream. */
|
53 | 48 | protected final Inflater inf;
|
@@ -107,7 +102,7 @@ public InflaterOutputStream(OutputStream out, Inflater infl) {
|
107 | 102 | * @throws IllegalArgumentException if {@code bufLen <= 0}
|
108 | 103 | * @throws NullPointerException if {@code out} or {@code infl} is null
|
109 | 104 | */
|
110 |
| - public InflaterOutputStream(OutputStream out, Inflater infl, @Positive int bufLen) { |
| 105 | + public InflaterOutputStream(OutputStream out, Inflater infl, int bufLen) { |
111 | 106 | super(out);
|
112 | 107 |
|
113 | 108 | // Sanity checks
|
@@ -225,7 +220,7 @@ public void write(int b) throws IOException {
|
225 | 220 | * @throws NullPointerException if {@code b} is null
|
226 | 221 | * @throws ZipException if a compression (ZIP) format error occurs
|
227 | 222 | */
|
228 |
| - public void write(@PolySigned byte[] b, @IndexOrHigh({"#1"}) int off, @IndexOrHigh({"#1"}) int len) throws IOException { |
| 223 | + public void write(byte[] b, int off, int len) throws IOException { |
229 | 224 | // Sanity checks
|
230 | 225 | ensureOpen();
|
231 | 226 | if (b == null) {
|
|
0 commit comments