From 53d61aa4c67c45e5ee4aad0eb94254fce6e9856d Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Wed, 21 Apr 2010 14:42:47 +0000 Subject: [PATCH] Unnecessary casts git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@936332 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/conn/TestConnectionReuse.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java b/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java index 5944862a2..5e7f475ef 100644 --- a/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java +++ b/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java @@ -100,7 +100,7 @@ public class TestConnectionReuse extends TestCase { this.localServer.register("/random/*", new RandomHandler()); this.localServer.start(); - InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress(); + InetSocketAddress saddress = this.localServer.getServiceAddress(); HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); @@ -170,7 +170,7 @@ public class TestConnectionReuse extends TestCase { this.localServer.register("/random/*", new RandomHandler()); this.localServer.start(); - InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress(); + InetSocketAddress saddress = this.localServer.getServiceAddress(); HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); @@ -230,7 +230,7 @@ public class TestConnectionReuse extends TestCase { this.localServer.register("/random/*", new RandomHandler()); this.localServer.start(); - InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress(); + InetSocketAddress saddress = this.localServer.getServiceAddress(); HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); @@ -291,7 +291,7 @@ public class TestConnectionReuse extends TestCase { this.localServer.register("/random/*", new RandomHandler()); this.localServer.start(); - InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress(); + InetSocketAddress saddress = this.localServer.getServiceAddress(); HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);