Integrated: 8304833: (fc) Remove dead code in sun.nio.ch.FileChannelImpl::implCloseChannel

Brian Burkhalter bpb at openjdk.org
Fri Mar 24 14:56:44 UTC 2023


On Thu, 23 Mar 2023 19:58:35 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Remove `fdAccess.close(fd)` branch in `implCloseChannel` as it is unreachable because exactly one of `parent` and `closer` can be non-`null`.

This pull request has now been integrated.

Changeset: 9a8a60f7
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9a8a60f7d6caae5b517b4284e10946ccc172ebd3
Stats:     13 lines in 1 file changed: 3 ins; 3 del; 7 mod

8304833: (fc) Remove dead code in sun.nio.ch.FileChannelImpl::implCloseChannel

Reviewed-by: alanb

-------------

PR: https://git.openjdk.org/jdk/pull/13168


More information about the nio-dev mailing list