> Please review this PR which cleans up SecurityManager related code from > `java.net.NetworkInterface` after JEP-486. > > The specification of four methods in NetworkInterface is updated to reflect > that these methods no longer uses `SecurityManager` to filter the results > such that a subset may be returned. A CSR draft has been filed to fix this > leftover from JEP-486. > > The actual SecurityManager cleanup: > > * The `getCheckedInetAddresses` method is removed. > * `getInetAddresses` is updated to return `enumerationFromArray(addrs)` (with > no filtering) > * `inetAddresses` is update to return `streamFromArray(addrs)` (with no > filtering) > * `getInterfaceAddresses` is updated to return the list of InterfaceAddresses > (with no filtering) > * `getHardwareAddress` is updated to return the result with no permission > checking > * Three c-style array declarations hurt my eyes and were updated (sorry!) > > GHA and tier2 results pending.
Eirik Bjørsnøs has updated the pull request incrementally with one additional commit since the last revision: Revert method description changes for getHardwareAddress ------------- Changes: - all: https://git.openjdk.org/jdk/pull/22177/files - new: https://git.openjdk.org/jdk/pull/22177/files/fb4dbdb0..89151b79 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=22177&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22177&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/22177.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22177/head:pull/22177 PR: https://git.openjdk.org/jdk/pull/22177