On Fri, 11 Apr 2025 13:47:10 GMT, Michael McMahon <micha...@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

Reply via email to