hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1717500 - /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/hc/core5/http/testserver/nio/HttpServerNio.java
Date Tue, 01 Dec 2015 19:13:43 GMT
Author: ggregory
Date: Tue Dec  1 19:13:42 2015
New Revision: 1717500

URL: http://svn.apache.org/viewvc?rev=1717500&view=rev
Log:
Statement unnecessarily nested within else clause.

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/hc/core5/http/testserver/nio/HttpServerNio.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/hc/core5/http/testserver/nio/HttpServerNio.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/hc/core5/http/testserver/nio/HttpServerNio.java?rev=1717500&r1=1717499&r2=1717500&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/hc/core5/http/testserver/nio/HttpServerNio.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/hc/core5/http/testserver/nio/HttpServerNio.java
Tue Dec  1 19:13:42 2015
@@ -93,9 +93,8 @@ public class HttpServerNio {
         final HttpServer local = this.server;
         if (local != null) {
             return this.server.getEndpoint();
-        } else {
-            throw new IllegalStateException("Server not running");
         }
+        throw new IllegalStateException("Server not running");
     }
 
     public void start() throws IOException {



Mime
View raw message