diff --git a/hutool-http/src/main/java/cn/hutool/http/HttpBase.java b/hutool-http/src/main/java/cn/hutool/http/HttpBase.java index 13b56fb43..ea4cdf0d3 100644 --- a/hutool-http/src/main/java/cn/hutool/http/HttpBase.java +++ b/hutool-http/src/main/java/cn/hutool/http/HttpBase.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.Map.Entry; /** - * http基类 + * http基类,提供请求和响应共用的属性和方法。 * * @param 子类类型,方便链式编程 * @author Looly @@ -347,8 +347,8 @@ public abstract class HttpBase { final StringBuilder sb = StrUtil.builder(); sb.append("Request Headers: ").append(StrUtil.CRLF); for (final Entry> entry : this.headers.entrySet()) { - sb.append(" ").append( - entry.getKey()).append(": ").append(CollUtil.join(entry.getValue(), ",")) + sb.append(" ") + .append(entry.getKey()).append(":").append(CollUtil.join(entry.getValue(), ",")) .append(StrUtil.CRLF); } diff --git a/hutool-http/src/main/java/cn/hutool/http/ssl/AndroidSupportSSLFactory.java b/hutool-http/src/main/java/cn/hutool/http/ssl/AndroidSupportSSLFactory.java index 165c1536b..7ae2ecf7d 100644 --- a/hutool-http/src/main/java/cn/hutool/http/ssl/AndroidSupportSSLFactory.java +++ b/hutool-http/src/main/java/cn/hutool/http/ssl/AndroidSupportSSLFactory.java @@ -18,6 +18,11 @@ public class AndroidSupportSSLFactory extends CustomProtocolsSSLFactory { private static final String[] protocols = { SSLProtocols.SSLv3, SSLProtocols.TLSv1, SSLProtocols.TLSv11, SSLProtocols.TLSv12}; + /** + * 构造 + * + * @throws IORuntimeException IO异常 + */ public AndroidSupportSSLFactory() throws IORuntimeException { super(protocols); } diff --git a/hutool-http/src/main/java/cn/hutool/http/ssl/DefaultSSLFactory.java b/hutool-http/src/main/java/cn/hutool/http/ssl/DefaultSSLFactory.java index 80e27794a..c784b0140 100644 --- a/hutool-http/src/main/java/cn/hutool/http/ssl/DefaultSSLFactory.java +++ b/hutool-http/src/main/java/cn/hutool/http/ssl/DefaultSSLFactory.java @@ -8,7 +8,8 @@ package cn.hutool.http.ssl; */ public class DefaultSSLFactory extends CustomProtocolsSSLFactory { - public DefaultSSLFactory() { - } - + /** + * 构造 + */ + public DefaultSSLFactory() {} }