http-client-branch: remove redundant null check in Http1Request http-client-branch
authorchegar
Mon, 05 Feb 2018 12:07:33 +0000
branchhttp-client-branch
changeset 56067 31eb9176ba85
parent 56063 fb2dd3c0dd60
child 56069 ffaea9a1eed5
http-client-branch: remove redundant null check in Http1Request
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java	Mon Feb 05 11:57:50 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/Http1Request.java	Mon Feb 05 12:07:33 2018 +0000
@@ -202,7 +202,7 @@
         if (uri != null) {
             systemHeaders.setHeader("Host", hostString());
         }
-        if (request == null || requestPublisher == null) {
+        if (requestPublisher == null) {
             // Not a user request, or maybe a method, e.g. GET, with no body.
             contentLength = 0;
         } else {