mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-19 23:05:28 +00:00
8259631: Reapply pattern match instanceof use in HttpClientImpl
Reviewed-by: dfuchs, chegar
This commit is contained in:
parent
3462f7a918
commit
b040a3d7a9
@ -158,8 +158,7 @@ final class HttpClientImpl extends HttpClient implements Trackable {
|
||||
}
|
||||
|
||||
private void shutdown() {
|
||||
if (delegate instanceof ExecutorService) {
|
||||
ExecutorService service = (ExecutorService)delegate;
|
||||
if (delegate instanceof ExecutorService service) {
|
||||
PrivilegedAction<?> action = () -> {
|
||||
service.shutdown();
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user