RFR: 8312444: Delete unused parameters and variables in SocketPermission [v2]
Andrey Turbanov
aturbanov at openjdk.org
Tue Mar 5 07:12:47 UTC 2024
On Sat, 2 Mar 2024 13:51:04 GMT, Korov <duke at openjdk.org> wrote:
>> Removing unused parameter `defval` in `SocketPermission.initEphemeralPorts`, so the variable `PRIV_PORT_MAX` and `DEF_EPH_LOW` unused too.
>>
>> Removing unused parameter `cname` in `SocketPermission.authorizedIPv4` and `SocketPermission.authorizedIPv6`.
>>
>> Parameter 'action' must be not empty so `a.length > 0`, the check `a.length - 1 < 0` can be removed.
>
> Korov has updated the pull request incrementally with one additional commit since the last revision:
>
> Modiy the code accordingto the review
Marked as reviewed by aturbanov (Committer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/18086#pullrequestreview-1916019640
More information about the security-dev
mailing list