Skip to content
Permalink
Browse files
8258696: Temporarily revert use of pattern match instanceof until doc…
…s-reference is fixed

Reviewed-by: rriggs, dcubed, bpb, jjg, dfuchs, aefimov
  • Loading branch information
ChrisHegarty committed Dec 18, 2020
1 parent a4f393c commit be41468c838666ded51437226e3668bb45043205
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java
@@ -158,7 +158,8 @@ public void execute(Runnable command) {
}

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

1 comment on commit be41468

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on be41468 Dec 18, 2020

Please sign in to comment.