mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -697,7 +697,7 @@ public class ZipFile implements ZipConstants, Closeable {
|
|||
e.method = CENHOW(cen, pos);
|
||||
if (CENVEM_FA(cen, pos) == FILE_ATTRIBUTES_UNIX) {
|
||||
// read all bits in this field, including sym link attributes
|
||||
e.extraAttributes = CENATX_PERMS(cen, pos) & 0xFFFF;
|
||||
e.externalFileAttributes = CENATX_PERMS(cen, pos) & 0xFFFF;
|
||||
}
|
||||
|
||||
if (elen != 0) {
|
||||
|
@ -1165,12 +1165,12 @@ public class ZipFile implements ZipConstants, Closeable {
|
|||
return zip.entryNameStream();
|
||||
}
|
||||
@Override
|
||||
public int getExtraAttributes(ZipEntry ze) {
|
||||
return ze.extraAttributes;
|
||||
public int getExternalFileAttributes(ZipEntry ze) {
|
||||
return ze.externalFileAttributes;
|
||||
}
|
||||
@Override
|
||||
public void setExtraAttributes(ZipEntry ze, int extraAttrs) {
|
||||
ze.extraAttributes = extraAttrs;
|
||||
public void setExternalFileAttributes(ZipEntry ze, int externalFileAttributes) {
|
||||
ze.externalFileAttributes = externalFileAttributes;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue