RFR: 8368907: (fs) Windows Error code 1314 not translated to AccessDeniedException (win) [v2]
Brian Burkhalter
bpb at openjdk.org
Mon Oct 13 17:55:26 UTC 2025
On Mon, 13 Oct 2025 16:05:12 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> src/java.base/windows/classes/sun/nio/fs/WindowsException.java line 81:
>>
>>> 79: IOException ex;
>>> 80:
>>> 81: switch (lastError()) {
>>
>> You can use a switch expression here to `return switch(lastError()) {`, no need for `ex`.
>
>> You can use a switch expression here to `return` [...].
>
> Cool. I was unaware of that. Will change. Thanks.
So changed in 49e05eb.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27753#discussion_r2426977603
More information about the nio-dev
mailing list