Skip to content
Permalink
Browse files
8259631: Reapply pattern match instanceof use in HttpClientImpl
Reviewed-by: dfuchs, chegar
  • Loading branch information
AlekseiEfimov committed Jan 14, 2021
1 parent 3462f7a commit b040a3d7a9785d78fb2d00f79643dc15b61dc0ac
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java
@@ -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;

1 comment on commit b040a3d

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on b040a3d Jan 14, 2021

Please sign in to comment.