浏览代码

add commnet

Looly 6 年之前
父节点
当前提交
e557cfd4b7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hutool-http/src/main/java/cn/hutool/http/HttpResponse.java

+ 2 - 0
hutool-http/src/main/java/cn/hutool/http/HttpResponse.java

@@ -420,6 +420,7 @@ public class HttpResponse extends HttpBase<HttpResponse> implements Closeable {
 		try {
 			IoUtil.copy(in, out);
 		} catch (IORuntimeException e) {
+			//noinspection StatementWithEmptyBody
 			if (e.getCause() instanceof EOFException || StrUtil.containsIgnoreCase(e.getMessage(), "Premature EOF")) {
 				// 忽略读取HTTP流中的EOF错误
 			} else {
@@ -447,6 +448,7 @@ public class HttpResponse extends HttpBase<HttpResponse> implements Closeable {
 		try {
 			this.readBody(this.in);
 		} catch (IORuntimeException e) {
+			//noinspection StatementWithEmptyBody
 			if (e.getCause() instanceof FileNotFoundException) {
 				// 服务器无返回内容,忽略之
 			} else {