Skip to content

Commit 2b23bde

Browse files
committed
Adapt to old Syntax
1 parent 115561a commit 2b23bde

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/jdk/java/net/httpclient/ProxyServer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ private ProxyServer(Integer port, Boolean debug, Credentials credentials)
109109
this.port = ((InetSocketAddress)listener.getLocalAddress()).getPort();
110110
this.credentials = credentials;
111111
connections = new CopyOnWriteArrayList<Connection>();
112-
Thread.ofPlatform().name("ProxyListener").daemon().start(this::run);
112+
Thread d = new Thread(() -> run());
113+
d.setName("ProxyListener");
114+
d.setDaemon(true);
115+
d.start();
113116
}
114117

115118
/**

0 commit comments

Comments
 (0)