src/java.base/share/classes/java/net/HttpConnectSocketImpl.java
branchniosocketimpl-branch
changeset 57240 f0e45a80ab8f
parent 57238 b145b1b04106
child 57268 adcdd45830a0
--- a/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java	Sat Mar 02 11:44:38 2019 +0000
+++ b/src/java.base/share/classes/java/net/HttpConnectSocketImpl.java	Mon Mar 04 08:13:31 2019 +0000
@@ -134,7 +134,7 @@
 
         // update the Sockets impl to the impl from the http Socket
         SocketImpl si = httpSocket.impl;
-        ((SocketImpl) this).getSocket().setImpl(si);
+        getSocket().setImpl(si);
 
         // best effort is made to try and reset options previously set
         Set<Map.Entry<Integer,Object>> options = optionsMap.entrySet();