From df203b7dcd543411ecb8bee7ce678d2943b85f0c Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 8 Nov 2012 01:50:59 +0000 Subject: [PATCH] Explicit boxing in main classes git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406891 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/examples/client/ClientExecuteSOCKS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java b/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java index 7ac30ef05..b8c9d979e 100644 --- a/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java +++ b/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteSOCKS.java @@ -104,7 +104,7 @@ public class ClientExecuteSOCKS { 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); }