mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8321274: Rename ZipEntry.extraAttributes to ZipEntry.externalFileAttributes
Reviewed-by: lancea, jpai
This commit is contained in:
parent
fac74b118f
commit
d51141e5fc
12 changed files with 52 additions and 56 deletions
|
@ -541,7 +541,7 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
|
|||
* to a version value.
|
||||
*/
|
||||
private int versionMadeBy(ZipEntry e, int version) {
|
||||
return (e.extraAttributes < 0) ? version :
|
||||
return (e.externalFileAttributes < 0) ? version :
|
||||
VERSION_MADE_BY_BASE_UNIX | (version & 0xff);
|
||||
}
|
||||
|
||||
|
@ -637,7 +637,7 @@ public class ZipOutputStream extends DeflaterOutputStream implements ZipConstant
|
|||
writeShort(0); // starting disk number
|
||||
writeShort(0); // internal file attributes (unused)
|
||||
// extra file attributes, used for storing posix permissions etc.
|
||||
writeInt(e.extraAttributes > 0 ? e.extraAttributes << 16 : 0);
|
||||
writeInt(e.externalFileAttributes > 0 ? e.externalFileAttributes << 16 : 0);
|
||||
writeInt(offset); // relative offset of local header
|
||||
writeBytes(nameBytes, 0, nameBytes.length);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue