hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1571437 - /httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
Date Mon, 24 Feb 2014 20:59:28 GMT
Author: sebb
Date: Mon Feb 24 20:59:27 2014
New Revision: 1571437

URL: http://svn.apache.org/r1571437
Log:
Avoid possible NPE warning

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java?rev=1571437&r1=1571436&r2=1571437&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
Mon Feb 24 20:59:27 2014
@@ -310,7 +310,7 @@ public class LocalTestServer {
      */
     public InetSocketAddress getServiceAddress() {
         final ServerSocket ssock = servicedSocket; // avoid synchronization
-        Asserts.check(ssock != null, "Not running");
+        Asserts.notNull(ssock, "Not running");
         return (InetSocketAddress) ssock.getLocalSocketAddress();
     }
 



Mime
View raw message