Skip to content

Commit b040a3d

Browse files
committedJan 14, 2021
8259631: Reapply pattern match instanceof use in HttpClientImpl
Reviewed-by: dfuchs, chegar
1 parent 3462f7a commit b040a3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ public void execute(Runnable command) {
158158
}
159159

160160
private void shutdown() {
161-
if (delegate instanceof ExecutorService) {
162-
ExecutorService service = (ExecutorService)delegate;
161+
if (delegate instanceof ExecutorService service) {
163162
PrivilegedAction<?> action = () -> {
164163
service.shutdown();
165164
return null;

0 commit comments

Comments
 (0)
Please sign in to comment.