Skip to content


8259631: Reapply pattern match instanceof use in HttpClientImpl
Browse files Browse the repository at this point in the history
Reviewed-by: dfuchs, chegar
  • Loading branch information
AlekseiEfimov committed Jan 14, 2021
1 parent 3462f7a commit b040a3d
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -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 = () -> {
return null;
Expand Down

1 comment on commit b040a3d

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.