Skip to content

Commit

Permalink
8259631: Reapply pattern match instanceof use in HttpClientImpl
Browse files Browse the repository at this point in the history
Reviewed-by: dfuchs, chegar
  • Loading branch information
AlekseiEfimov committed Jan 14, 2021
1 parent 3462f7a commit b040a3d
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -158,8 +158,7 @@ public void execute(Runnable command) {
}

private void shutdown() {
if (delegate instanceof ExecutorService) {
ExecutorService service = (ExecutorService)delegate;
if (delegate instanceof ExecutorService service) {
PrivilegedAction<?> action = () -> {
service.shutdown();
return null;
Expand Down

1 comment on commit b040a3d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.