mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8326687: Inconsistent use of "ZIP", "Zip" and "zip" in java.util.zip/jar zipfs javadoc
Reviewed-by: dfuchs, jpai, gli
This commit is contained in:
parent
b938a5c9ed
commit
38ad514589
12 changed files with 123 additions and 123 deletions
|
@ -49,10 +49,10 @@ import sun.security.action.GetBooleanAction;
|
|||
public class ZipOutputStream extends DeflaterOutputStream implements ZipConstants {
|
||||
|
||||
/**
|
||||
* Whether to use ZIP64 for zip files with more than 64k entries.
|
||||
* Until ZIP64 support in zip implementations is ubiquitous, this
|
||||
* system property allows the creation of zip files which can be
|
||||
* read by legacy zip implementations which tolerate "incorrect"
|
||||
* Whether to use ZIP64 for ZIP files with more than 64k entries.
|
||||
* Until ZIP64 support in ZIP implementations is ubiquitous, this
|
||||
* system property allows the creation of ZIP files which can be
|
||||
* read by legacy ZIP implementations which tolerate "incorrect"
|
||||
* total entry count fields, such as the ones in jdk6, and even
|
||||
* some in jdk7.
|
||||
*/
|
||||
|
@ -233,7 +233,7 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
|
|||
// descriptor immediately following the compressed entry data.
|
||||
// Ignore the compressed size of a ZipEntry if it was implcitely set
|
||||
// while reading that ZipEntry from a ZipFile or ZipInputStream because
|
||||
// we can't know the compression level of the source zip file/stream.
|
||||
// we can't know the compression level of the source ZIP file/stream.
|
||||
if (e.size == -1 || e.csize == -1 || e.crc == -1 || !e.csizeSet) {
|
||||
e.flag = 8;
|
||||
}
|
||||
|
@ -734,7 +734,7 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
|
|||
writeShort(count); // total number of directory entries
|
||||
writeInt(xlen); // length of central directory
|
||||
writeInt(xoff); // offset of central directory
|
||||
if (comment != null) { // zip file comment
|
||||
if (comment != null) { // ZIP file comment
|
||||
writeShort(comment.length);
|
||||
writeBytes(comment, 0, comment.length);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue