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:
parent
a4f393caf4
commit
be41468c83
@ -158,7 +158,8 @@ final class HttpClientImpl extends HttpClient implements Trackable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void shutdown() {
|
private void shutdown() {
|
||||||
if (delegate instanceof ExecutorService service) {
|
if (delegate instanceof ExecutorService) {
|
||||||
|
ExecutorService service = (ExecutorService)delegate;
|
||||||
PrivilegedAction<?> action = () -> {
|
PrivilegedAction<?> action = () -> {
|
||||||
service.shutdown();
|
service.shutdown();
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user