8230415: Avoid redundant permission checking in FilePermissionCollection and SocketPermissionCollection
Reviewed-by: mullan
This commit is contained in:
parent
68937e9b9f
commit
680fceb9ba
@ -1196,7 +1196,7 @@ final class FilePermissionCollection extends PermissionCollection
|
||||
if ((effective & desired) == desired) {
|
||||
return true;
|
||||
}
|
||||
needed = (desired ^ effective);
|
||||
needed = (desired & ~effective);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
@ -1433,7 +1433,7 @@ final class SocketPermissionCollection extends PermissionCollection
|
||||
if ((effective & desired) == desired) {
|
||||
return true;
|
||||
}
|
||||
needed = (desired ^ effective);
|
||||
needed = (desired & ~effective);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user