From 019874207143827623d9198df46ab16a29472bed Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 16 Jan 2010 14:26:57 +0000 Subject: [PATCH] Unused variables git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@899962 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/conn/routing/TestHttpRoute.java | 4 ++-- .../java/org/apache/http/conn/routing/TestRouteTracker.java | 4 ++-- .../java/org/apache/http/impl/conn/TestTSCCMNoServer.java | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java b/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java index 7083dcc25..104bd1381 100644 --- a/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java +++ b/httpclient/src/test/java/org/apache/http/conn/routing/TestHttpRoute.java @@ -281,7 +281,7 @@ public class TestHttpRoute extends TestCase { } try { - route = new HttpRoute(TARGET1, null, chain4, false, + new HttpRoute(TARGET1, null, chain4, false, TunnelType.PLAIN, LayerType.PLAIN); fail("invalid proxy chain (4) not detected"); } catch (IllegalArgumentException iax) { @@ -566,7 +566,7 @@ public class TestHttpRoute extends TestCase { // this constructor REQUIRES a proxy to be specified try { - route = new HttpRoute(TARGET1, LOCAL61, null, false); + new HttpRoute(TARGET1, LOCAL61, null, false); fail("missing proxy not detected"); } catch (IllegalArgumentException iax) { // expected diff --git a/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java b/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java index 780caf96a..3ad25bec6 100644 --- a/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java +++ b/httpclient/src/test/java/org/apache/http/conn/routing/TestRouteTracker.java @@ -132,7 +132,7 @@ public class TestRouteTracker extends TestCase { rt = null; try { - rt = new RouteTracker(null, LOCAL41); + new RouteTracker(null, LOCAL41); fail("null target not detected"); } catch (IllegalArgumentException iax) { // expected @@ -188,7 +188,7 @@ public class TestRouteTracker extends TestCase { rt = null; try { - rt = new RouteTracker(null); + new RouteTracker(null); fail("null route not detected"); } catch (NullPointerException npx) { // expected diff --git a/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java b/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java index 79694f275..dcb4d3add 100644 --- a/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java +++ b/httpclient/src/test/java/org/apache/http/impl/conn/TestTSCCMNoServer.java @@ -164,7 +164,7 @@ public class TestTSCCMNoServer extends TestCase { mgr.releaseConnection(conn, -1, null); try { - conn = getConnection(mgr, null); + getConnection(mgr, null); fail("null route not detected"); } catch (IllegalArgumentException iax) { // expected @@ -208,7 +208,7 @@ public class TestTSCCMNoServer extends TestCase { // there should be a connection available now try { - conn2 = getConnection(mgr, route2, 100L, TimeUnit.MILLISECONDS); + getConnection(mgr, route2, 100L, TimeUnit.MILLISECONDS); } catch (ConnectionPoolTimeoutException cptx) { cptx.printStackTrace(); fail("connection should have been available: " + cptx); @@ -429,7 +429,7 @@ public class TestTSCCMNoServer extends TestCase { // the manager is down, we should not be able to get a connection try { - conn = getConnection(mgr, route, 1L, TimeUnit.MILLISECONDS); + getConnection(mgr, route, 1L, TimeUnit.MILLISECONDS); fail("shut-down manager does not raise exception"); } catch (IllegalStateException isx) { // expected