RFR: 8343785: (fs) Remove syscalls that set file times with microsecond precision [v2]
Brian Burkhalter
bpb at openjdk.org
Wed Nov 13 19:41:33 UTC 2024
On Wed, 13 Nov 2024 16:10:42 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> src/java.base/unix/classes/sun/nio/fs/UnixFileAttributeViews.java line 80:
>>
>>> 78: // if path is a symlink, then the open should fail with ELOOP and
>>> 79: // the path will be used instead of the file descriptor.
>>> 80: boolean haveFd = false;
>>
>> In passing, we don't need haveFd, instead we can use fd >= 0 as is done in other places.
>
> Yes, I had thought of doing that but left `haveFd` as it had been there before. Will change.
`s/haveFd/fd >= 0/` in fc5f8e8.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21989#discussion_r1841060854
More information about the nio-dev
mailing list