mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-27 13:25:35 +00:00
Explicit boxing in main classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e9ed1f5725
commit
df203b7dcd
@ -104,7 +104,7 @@ public Socket createSocket(final HttpParams params) throws IOException {
|
||||
String proxyHost = (String) params.getParameter("socks.host");
|
||||
Integer proxyPort = (Integer) params.getParameter("socks.port");
|
||||
|
||||
InetSocketAddress socksaddr = new InetSocketAddress(proxyHost, proxyPort);
|
||||
InetSocketAddress socksaddr = new InetSocketAddress(proxyHost, proxyPort.intValue());
|
||||
Proxy proxy = new Proxy(Proxy.Type.SOCKS, socksaddr);
|
||||
return new Socket(proxy);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user