8258696: Temporarily revert use of pattern match instanceof until docs-reference is fixed

Reviewed-by: rriggs, dcubed, bpb, jjg, dfuchs, aefimov
This commit is contained in:
Chris Hegarty 2020-12-18 19:49:28 +00:00
parent a4f393caf4
commit be41468c83

View File

@ -158,7 +158,8 @@ final class HttpClientImpl extends HttpClient implements Trackable {
}
private void shutdown() {
if (delegate instanceof ExecutorService service) {
if (delegate instanceof ExecutorService) {
ExecutorService service = (ExecutorService)delegate;
PrivilegedAction<?> action = () -> {
service.shutdown();
return null;