hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r936332 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java
Date Wed, 21 Apr 2010 14:42:47 GMT
Author: sebb
Date: Wed Apr 21 14:42:47 2010
New Revision: 936332

URL: http://svn.apache.org/viewvc?rev=936332&view=rev
Log:
Unnecessary casts

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java?rev=936332&r1=936331&r2=936332&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/TestConnectionReuse.java
Wed Apr 21 14:42:47 2010
@@ -100,7 +100,7 @@ public class TestConnectionReuse extends
         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
         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
         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
         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);



Mime
View raw message