RFR: 8278165: Clarify that ZipInputStream does not access the CEN fields for a ZipEntry [v2]

Lance Andersen lancea at openjdk.org
Tue Sep 13 18:12:48 UTC 2022


On Tue, 13 Sep 2022 17:38:29 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Lance Andersen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Address sample indentation and typo
>
> src/java.base/share/classes/java/util/zip/ZipInputStream.java line 49:
> 
>> 47:  * The {@link #getNextEntry()} method is used to read the next ZIP file entry
>> 48:  * (Local file (LOC) header record in the ZIP format) and position the stream at
>> 49:  * the entry's file data. The file data may read using one of
> 
> of -> of the?

fixed

> src/java.base/share/classes/java/util/zip/ZipInputStream.java line 56:
> 
>> 54:  *     {@code
>> 55:  *      try (FileInputStream fis = new FileInputStream(jar.toFile());
>> 56:  *              ZipInputStream zis = new ZipInputStream(fis)) {
> 
> The indentation seems weird in this code sample.

Reformatted

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

PR: https://git.openjdk.org/jdk/pull/10102


More information about the core-libs-dev mailing list