RFR: 8326096: Deprecate getTotalIn, getTotalOut methods of java.util.zip.Inflater, java.util.zip.Deflater [v4]

Eirik Bjørsnøs eirbjo at openjdk.org
Mon Feb 26 21:06:48 UTC 2024


On Mon, 26 Feb 2024 19:54:11 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > I'm wondering if the somewhat tedious "number of compressed bytes input so far" could be further simplified. Besides being a long repetition from the leading sentence, when used in this sentence, we actually mean to refer to the "actual, correct, real value", potentially different from the return value.
> 
> The end of the sentence could be reduced to "and therefore cannot return the correct value when it is greater than {@link Integer#MAX_VALUE}" and it would be a bit shorter.

Thanks Alan, I pushed this suggested change. Your input is welcome on my response to the comment from Lance above where folding the overflow specification into the `@deprecated` note.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17919#issuecomment-1965268619


More information about the core-libs-dev mailing list