You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2015/12/01 20:13:43 UTC
svn commit: r1717500 -
/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/hc/core5/http/testserver/nio/HttpServerNio.java
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 {