Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@936332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8d89fa2657
commit
53d61aa4c6
|
@ -100,7 +100,7 @@ public class TestConnectionReuse extends TestCase {
|
||||||
this.localServer.register("/random/*", new RandomHandler());
|
this.localServer.register("/random/*", new RandomHandler());
|
||||||
this.localServer.start();
|
this.localServer.start();
|
||||||
|
|
||||||
InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress();
|
InetSocketAddress saddress = this.localServer.getServiceAddress();
|
||||||
|
|
||||||
HttpParams params = new BasicHttpParams();
|
HttpParams params = new BasicHttpParams();
|
||||||
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
||||||
|
@ -170,7 +170,7 @@ public class TestConnectionReuse extends TestCase {
|
||||||
this.localServer.register("/random/*", new RandomHandler());
|
this.localServer.register("/random/*", new RandomHandler());
|
||||||
this.localServer.start();
|
this.localServer.start();
|
||||||
|
|
||||||
InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress();
|
InetSocketAddress saddress = this.localServer.getServiceAddress();
|
||||||
|
|
||||||
HttpParams params = new BasicHttpParams();
|
HttpParams params = new BasicHttpParams();
|
||||||
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
||||||
|
@ -230,7 +230,7 @@ public class TestConnectionReuse extends TestCase {
|
||||||
this.localServer.register("/random/*", new RandomHandler());
|
this.localServer.register("/random/*", new RandomHandler());
|
||||||
this.localServer.start();
|
this.localServer.start();
|
||||||
|
|
||||||
InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress();
|
InetSocketAddress saddress = this.localServer.getServiceAddress();
|
||||||
|
|
||||||
HttpParams params = new BasicHttpParams();
|
HttpParams params = new BasicHttpParams();
|
||||||
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
||||||
|
@ -291,7 +291,7 @@ public class TestConnectionReuse extends TestCase {
|
||||||
this.localServer.register("/random/*", new RandomHandler());
|
this.localServer.register("/random/*", new RandomHandler());
|
||||||
this.localServer.start();
|
this.localServer.start();
|
||||||
|
|
||||||
InetSocketAddress saddress = (InetSocketAddress) this.localServer.getServiceAddress();
|
InetSocketAddress saddress = this.localServer.getServiceAddress();
|
||||||
|
|
||||||
HttpParams params = new BasicHttpParams();
|
HttpParams params = new BasicHttpParams();
|
||||||
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
|
||||||
|
|
Loading…
Reference in New Issue