--- old/src/java.net.http/share/classes/jdk/internal/net/http/ResponseContent.java 2018-12-06 17:53:29.581560670 -0500 +++ new/src/java.net.http/share/classes/jdk/internal/net/http/ResponseContent.java 2018-12-06 17:53:29.409559817 -0500 @@ -84,7 +84,7 @@ if (contentLength == -1) { String tc = headers.firstValue("Transfer-Encoding") .orElse(""); - if (!tc.equals("")) { + if (!tc.isEmpty()) { if (tc.equalsIgnoreCase("chunked")) { chunkedContent = true; } else {