Integrated: 8312444: Delete unused parameters and variables in SocketPermission

Korov duke at openjdk.org
Tue Mar 12 15:58:22 UTC 2024


On Fri, 1 Mar 2024 17:35:35 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.

This pull request has now been integrated.

Changeset: 379ad1fb
Author:    Korov <korov9 at 163.com>
Committer: Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/379ad1fbb4432c044912139e3d4e897988a341fa
Stats:     24 lines in 1 file changed: 0 ins; 9 del; 15 mod

8312444: Delete unused parameters and variables in SocketPermission

Reviewed-by: gli, aturbanov, dfuchs

-------------

PR: https://git.openjdk.org/jdk/pull/18086



More information about the security-dev mailing list