RFR: 8353642: Deprecate URL::getPermission method and networking permission classes for removal [v2]
Daniel Fuchs
dfuchs at openjdk.org
Fri Apr 11 14:00:34 UTC 2025
On Fri, 11 Apr 2025 13:47:10 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
>> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Missing white spaces
>
> src/java.base/share/classes/java/security/CodeSource.java line 461:
>
>> 459: if (this.sp == null) {
>> 460: @SuppressWarnings("removal")
>> 461: var _ = this.sp = new SocketPermission(thisHost, "resolve");
>
> What's the reason for the `var _ =` bit ?
`@SuppressWarnings` can not be applied to a an expression - it needs a (variable/method/class) declaration
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24592#discussion_r2039613130
More information about the security-dev
mailing list