mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8230415: Avoid redundant permission checking in FilePermissionCollection and SocketPermissionCollection
Reviewed-by: mullan
This commit is contained in:
parent
68937e9b9f
commit
680fceb9ba
2 changed files with 2 additions and 2 deletions
|
@ -1196,7 +1196,7 @@ final class FilePermissionCollection extends PermissionCollection
|
|||
if ((effective & desired) == desired) {
|
||||
return true;
|
||||
}
|
||||
needed = (desired ^ effective);
|
||||
needed = (desired & ~effective);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue