From 5d662c73967eb2ea034f5583e6b52c366fdbefa5 Mon Sep 17 00:00:00 2001 From: Jaikiran Pai Date: Tue, 9 Jun 2026 16:10:10 +0530 Subject: [PATCH] adjust the implNote --- .../share/classes/java/util/zip/GZIPInputStream.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/java.base/share/classes/java/util/zip/GZIPInputStream.java b/src/java.base/share/classes/java/util/zip/GZIPInputStream.java index f1b9f782b0e..79ccd501c06 100644 --- a/src/java.base/share/classes/java/util/zip/GZIPInputStream.java +++ b/src/java.base/share/classes/java/util/zip/GZIPInputStream.java @@ -63,10 +63,12 @@ import java.util.Objects; * {@link InputStream#available()} on the underlying stream to determine whether additional * bytes are available that may represent a subsequent member. If the * {@systemProperty jdk.util.gzip.tryReadAheadAfterTrailer} system property is set - * to {@code true}, then the call to {@code InputStream.available()} is skipped and a read - * is performed on the underlying stream for a subsequent member. By default, - * the {@code jdk.util.gzip.tryReadAheadAfterTrailer} system property is not set, and - * {@code InputStream.available()} gets called. + * to {@code true}, then the call to {@code InputStream.available()} is skipped and the + * implementation instead attempts to read a subsequent member in the stream. The return value from + * {@code InputStream.available()} may not always be accurate, so it may be necessary to set this + * property in environments that process streams with a series of members. By default, + * the {@code jdk.util.gzip.tryReadAheadAfterTrailer} system property is not set, + * and {@code InputStream.available()} gets called. * * @spec https://www.rfc-editor.org/info/rfc1952 * RFC 1952: GZIP file format specification version 4.3