Skip to content

Delete assertAsynchronousClose, migrating callers to assertClosed. - #502

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_957229338
Jul 31, 2026
Merged

Delete assertAsynchronousClose, migrating callers to assertClosed.#502
copybara-service[bot] merged 1 commit into
masterfrom
test_957229338

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Delete assertAsynchronousClose, migrating callers to assertClosed.

The two are equivalent: assertAsynchronousClose looked different because it was checking instanceof AsynchronousCloseException || instanceof ClosedChannelException instead of just instanceof ClosedChannelException. However, AsynchronousCloseException is a subtype of ClosedChannelException.

RELNOTES=n/a

The two are equivalent: `assertAsynchronousClose` _looked_ different because it was checking `instanceof AsynchronousCloseException || instanceof ClosedChannelException` instead of just `instanceof ClosedChannelException`. However, [`AsynchronousCloseException`](https://docs.oracle.com/en/java/javase/26/docs/api/java.base/java/nio/channels/AsynchronousCloseException.html) is a subtype of `ClosedChannelException`.

RELNOTES=n/a
PiperOrigin-RevId: 957265648
@copybara-service
copybara-service Bot merged commit 4bb21de into master Jul 31, 2026
@copybara-service
copybara-service Bot deleted the test_957229338 branch July 31, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant