RFR: 8282648: Problems due to conflicting specification of Inflater::inflate(..) and InflaterInputStream::read(..) [v5]
Volker Simonis
simonis at openjdk.java.net
Tue Apr 12 14:50:37 UTC 2022
On Mon, 11 Apr 2022 16:04:48 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Adapted wording and copyrights based on @jaikiran review
>
> src/java.base/share/classes/java/util/zip/GZIPInputStream.java line 110:
>
>> 108: * @param len the maximum number of bytes read
>> 109: * @return the actual number of bytes read, or -1 if the end of the
>> 110: * compressed input stream is reached
>
> We should probably adjust the `@return` description, as was done for InflaterInputStream, otherwise the method. description will say "the returning number of inflated bytes" and the return description will say "the actual number of bytes read".
Fixed (also in `ZipInputStream`).
-------------
PR: https://git.openjdk.java.net/jdk/pull/7986
More information about the core-libs-dev
mailing list